Forum Academy Marketplace Showcase Pricing Features

Send XML from bubble to API not possible?

Hi all bubblers!

I’m learning a lot here but are facing troubles to create an XML to send it out to an API.
Support told me that it is not possible, so I’m looking for someone that can help me with a solution for it ( maybe outside bubble?)

Documentation: https://labconnector.eurofins.com/swagger/docs/v1

This is what I have in the API Connector:


This is the XML I need to send out:

> <?xml version="1.0"?>
> <EuroFins.Common.Schema.Order._16.OrderData>
>   <customerOrder>
>     <customerOrderCode>string</customerOrderCode>
>     <customerOrderName>string</customerOrderName>
>     <senderCode>string</senderCode>
>     <isAutoValidated>true</isAutoValidated>
>     <customerCode>string</customerCode>
>     <contractId>string</contractId>
>     <quotationCode>string</quotationCode>
>     <locale>string</locale>
>     <dateFormat>string</dateFormat>
>     <serviceId>string</serviceId>
>     <laboratoryCode>string</laboratoryCode>
>     <project>
>       <projectCode>string</projectCode>
>       <projectName>string</projectName>
>     </project>
>     <customerOrderBarcode>string</customerOrderBarcode>
>     <isWithShipment>true</isWithShipment>
>     <customerOrderComment>string</customerOrderComment>
>     <additionalElements>
>       <name>string</name>
>       <typeCode>string</typeCode>
>       <stringValue>string</stringValue>
>       <nativeValue>string</nativeValue>
>     </additionalElements>
>     <samples>
>       <sampleCode>string</sampleCode>
>       <sampleDescription>string</sampleDescription>
>       <sampleReference>string</sampleReference>
>       <sampleClassification>
>         <classificationSystem>string</classificationSystem>
>         <classificationCode>string</classificationCode>
>         <priorityLevel>1.1</priorityLevel>
>         <treeOfProductCode>string</treeOfProductCode>
>       </sampleClassification>
>       <priorityLevelCode>string</priorityLevelCode>
>       <quotationCode>string</quotationCode>
>       <sampleComment>string</sampleComment>
>       <analyses>
>         <quotationCode>string</quotationCode>
>         <package>
>           <isCustomer>true</isCustomer>
>           <isCustomerSpecified>true</isCustomerSpecified>
>           <packageCode>string</packageCode>
>           <subgroupCode>string</subgroupCode>
>           <testsDetails>string</testsDetails>
>         </package>
>         <test>
>           <testCode>string</testCode>
>           <subgroupCode>string</subgroupCode>
>           <quotationLineKey>string</quotationLineKey>
>         </test>
>         <fractionCode>string</fractionCode>
>         <customizedFractionName>string</customizedFractionName>
>         <parameters>
>           <parameterCode>string</parameterCode>
>           <testCode>string</testCode>
>           <estimatedValue>string</estimatedValue>
>           <estimatedUnit>string</estimatedUnit>
>         </parameters>
>       </analyses>
>       <deferredStartDate>1970-01-01T00:00:00.001Z</deferredStartDate>
>       <deferredStartDateSpecified>true</deferredStartDateSpecified>
>       <additionalElements>
>         <name>string</name>
>         <typeCode>string</typeCode>
>         <stringValue>string</stringValue>
>         <nativeValue>string</nativeValue>
>       </additionalElements>
>       <internalElements>
>         <importationCode>string</importationCode>
>         <internalSampleCode>string</internalSampleCode>
>         <limits>
>           <limitSqlId>1</limitSqlId>
>           <limitIncId>1</limitIncId>
>         </limits>
>         <samplePartnerCategorySqlId>1</samplePartnerCategorySqlId>
>         <samplePartnerCategoryIncId>1</samplePartnerCategoryIncId>
>         <numberOfContainers>1</numberOfContainers>
>         <organismSqlId>1</organismSqlId>
>         <organismIncId>1</organismIncId>
>         <analyticalServiceKey>string</analyticalServiceKey>
>         <purchasedSamplePriceWithoutTax>1.1</purchasedSamplePriceWithoutTax>
>         <customisedParameters>
>           <testCode>string</testCode>
>           <parameterCode>string</parameterCode>
>           <parameterName>string</parameterName>
>         </customisedParameters>
>         <customisedFractions>
>           <fractionCode>string</fractionCode>
>           <productEurodat5Code>string</productEurodat5Code>
>         </customisedFractions>
>       </internalElements>
>       <flasks>
>         <flaskBarcode>string</flaskBarcode>
>       </flasks>
>     </samples>
>   </customerOrder>
> </EuroFins.Common.Schema.Order._16.OrderData>

This is what I get after inizialize:

Is this possible one way or an other way??
Or do I stupid things…?:cry:

Thanks a lot for your advise!

anyone??

Having the same issue. any help would be much appreciated.

it looks lik bubble can’t send out a full XML
The Json part (dynamic values) are not “translated” to XML as the laboratory informed me

Looking to do the same thing. Have you worked it out in the end?