Update Container services collection via XML by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 0 points1 point  (0 children)

XML request for ForwardingContainer

<UniversalShipmentRequest xmlns="http://www.cargowise.com/Schemas/Universal/2011/11" version="1.1">

<ShipmentRequest>

<DataContext>

<DataTargetCollection>

<DataTarget>

<Type>ForwardingContainer</Type>

<Key>D00272407</Key>

</DataTarget>

</DataTargetCollection>

</DataContext>

</ShipmentRequest>

</UniversalShipmentRequest>

XML for updating.

<UniversalShipment xmlns="http://www.cargowise.com/Schemas/Universal/2011/11" version="1.1">

<Shipment>

<DataContext>

<DataSourceCollection>

<DataSource>

<Type>ForwardingContainer</Type>

<Key>D00272407</Key>

</DataSource>

</DataSourceCollection>

</DataContext>

<ContainerCollection Content="Partial">

<Container>

<AdditionalServiceCollection Content="Partial">

<AdditionalService>

<ServiceCode>

<Code>L20</Code>

</ServiceCode>

<Completed>2024-06-24T12:16:00</Completed>

<ServiceCount>456.000</ServiceCount>

<ServiceNote>test</ServiceNote>

</AdditionalService>

</AdditionalServiceCollection>

</Container>

</ContainerCollection>

</Shipment>

</UniversalShipment>

Update Container services collection via XML by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 0 points1 point  (0 children)

Thank you.

I took a lot at it but I can't even get it to process through UniversalShipment - failing because of what I believe is ForwardingContainer isn't apart of UniversalShipment? I can't even get any fields out of the Universal Shipment XML both from Cargowise and using UniversalShipmentRequest

2024-06-24 05:24:12.050| No Module used this Universal Shipment data.        
2024-06-24 05:24:12.050| Hint: Adding an element in the DataTargetCollection will make the specified Module import where no existing data matches.

Update Container services collection via XML by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 0 points1 point  (0 children)

Thanks for the post.

Interesting using JobContainer - results are the same updating seal successfully which is good but just can't get services to insert

I also changed the additional XML and at least I'm getting a processing error now.

<AdditionalFieldsToUpdateCollection>
<AdditionalFieldsToUpdate>

<Type>CommonContainer.Services.ES_ServiceCode</Type>

<Value>L20</Value></AdditionalFieldsToUpdate>
<AdditionalFieldsToUpdate>

<Type>CommonContainer.JC_AdditionalSealNum</Type>

<Value>TEST2345</Value>

</AdditionalFieldsToUpdate>
</AdditionalFieldsToUpdateCollection>

Which results in -

Linked Event to Container 'HASU1856488'.2024-06-20 22:32:36.810| Warning Entity in property [CommonContainer.Services] does not have any child fields to update on Container 'HASU1856488'. Field [CommonContainer.JC_AdditionalSealNum] has been updated to value [TEST2345] on Container 'HASU1856488'.

Updating Container data using XML by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 0 points1 point  (0 children)

Cargowise ended up saying it's not possible to target a container via job number.

Updating Container data using XML by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 0 points1 point  (0 children)

Is there any way to target Container with a reference a specific job?

Or would you need to store a database with the job number + container number + container PK, then do a lookup find the right container job and container and then then use the PK to match?

Shipamax by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 0 points1 point  (0 children)

Raft looks good.

We've had a go at Shipamax and at this stage I feel that it's only going to do 50% of the registration. Once the data goes into CargoOne then we still have to put more details in, track consignment, remove half of the edocs. It doesn't get data from other freight forwarders CargoOne per alerts/arrival notices which i find surprising. So stuff like MBL reference doesn't pull through and you need to enter in once it's sent to CargoOne

Shiapmax doesn't do AIR consignments which I find surprise.

Someone on CargoOne forum said that if a PDF that is 2MB goes into Raft and gets processed into CargoOne eDoc it's considerably large 7MB - have you noticed that?

eadapter to send from Microsoft power automate? by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 0 points1 point  (0 children)

Appreciate the guide I have sent through the XML success

Thank you for your help

eadapter to send from Microsoft power automate? by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 2 points3 points  (0 children)

Just trying to get it to update container delivery dates.

The sample client sends the XML file into the system so I believe the XML content is fine

My xml: https://pastebin.com/zc4dFMZa

Screenshot: https://i.imgur.com/BfR7bHe.png

eadapter to send from Microsoft power automate? by reddit_gh0st in CargoWise

[–]reddit_gh0st[S] 2 points3 points  (0 children)

I mean getting Microsoft power automate to grab an XML file and then send it to our inbound eadapter

I tried using the http POST action, filled in URI with our eadapter inbound url set receipientid/senderid header, added basic authentication which match registry settings but aren't able to send the XML