[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Posting MultPart Mime
Can anyone give me advice on how to post a multipart mime document (aka
ebxml or soap with attachment)?
I will have created the soap document and the payload document in the
ifs as separate documents.
So, I need to insert the http headers, including total bytes as Content
Length, then insert the soap doc, then insert a mime break, then insert
the payload doc, then insert final mime break. Here is a sample of
what it should look like.
I am doing a straight soap without payload using http_url_post_stmf for
a different application, and that works... so how would I do the
multipart?
POST /rich HTTP/1.1
Connection: close
Cache-control: no-cache
SOAPAction: "ebXML"
Host: 172.16.16.10
Content-Type: multipart/related; type="text/xml";
start="20111205094816.header"; boundary="---ZMODEDI??gc0p4Jq0M2Yt50001"
Content-Length: 8740
-----ZMODEDI??gc0p4Jq0M2Yt50001
Content-ID: 20111205094816.header
Content-Type: text/xml
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-hea
der-2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<eb:MessageHeader SOAP-ENV:mustUnderstand="1" eb:version="2.0">
<eb:From>
<eb:PartyId eb:type="DUNS+4">0070446470000</eb:PartyId>
</eb:From>
<eb:To>
<eb:PartyId eb:type="DUNS+4">0091469450000</eb:PartyId>
</eb:To>
<eb:CPAId>ProductMovementReport</eb:CPAId>
<eb:ConversationId>JSIPM1172920111205094814</eb:ConversationId>
<eb:Service>uri:ProductMovement</eb:Service>
<eb:Action>SendFile</eb:Action>
<eb:MessageData>
<eb:MessageId>JSIPM1172920111205094814</eb:MessageId>
<eb:Timestamp>2011-12-05T09:48:14</eb:Timestamp>
</eb:MessageData>
</eb:MessageHeader>
<eb:AckRequested SOAP-ENV:mustUnderstand="1" eb:signed="false"
eb:version="2.0" />
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<eb:Manifest eb:id="Manifest" eb:version="2.0">
<eb:Reference eb:id="2011120594814.payload.1"
xlink:href="2011120594814.payload.1" xlink:type="simple"
xmlns:xlink="http://www.w3.org/1999/xlink" />
</eb:Manifest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
-----ZMODEDI??gc0p4Jq0M2Yt50001
Content-ID: 20111205094814.payload.1
Content-Type: text/xml
<?xml version="1.0" encoding="UTF-8"?>
<ProductMovementReport Version="4.0"
xmlns="urn:cidx:names:specification:ces:schema:all:4:0">
<Header>
<ThisDocumentIdentifier>
<DocumentIdentifier>3060</DocumentIdentifier>
</ThisDocumentIdentifier>
<ThisDocumentDateTime>
<DateTime DateTimeQualifier="On">2011-12-05T09:48:14Z</DateTime>
</ThisDocumentDateTime>
<From>
<PartnerInformation>
<PartnerName>Jimmy Sanders, Inc</PartnerName>
<PartnerIdentifier
Agency="AGIIS-EBID">0070446470000</PartnerIdentifier>
</PartnerInformation>
</From>
<To>
<PartnerInformation>
<PartnerName>FMC CORPORATION</PartnerName>
<PartnerIdentifier
Agency="AGIIS-EBID">0091469450000</PartnerIdentifier>
</PartnerInformation>
</To>
</Header>
<ProductMovementReportBody>
<ProductMovementReportDetails>
<ReportingEntity>
<PartnerInformation>
<PartnerName>Jimmy Sanders, Inc.</PartnerName>
<PartnerIdentifier
Agency="AGIIS-EBID">0070446470000</PartnerIdentifier>
</PartnerInformation>
</ReportingEntity>
<ProductMovementTransactions ProductMovementReportType="SalesReport">
<ProductMovementTransaction>
<ProductMovementTransactionProperties ProductMovementType="StockSale"
SaleOrReturnType="EndUser">
<ReferenceInformation ReferenceType="InvoiceNumber">
<DocumentReference>
<DocumentIdentifier>3654</DocumentIdentifier>
</DocumentReference>
</ReferenceInformation>
<EventDateTime EventDateType="InvoiceDate">
<DateTime DateTimeQualifier="On">2011-12-01T09:48:14Z</DateTime>
</EventDateTime>
<LanguageCode Domain="ISO-639-2T">eng</LanguageCode>
<CurrencyCode Domain="ISO-4217">USD</CurrencyCode>
</ProductMovementTransactionProperties>
<ProductMovementTransactionPartners>
<ShipTo>
<PartnerInformation>
<PartnerName>SENKBEIL,WILLIAM T;</PartnerName>
<PartnerIdentifier Agency="AssignedBySeller">44469</PartnerIdentifier>
<AddressInformation>
<AddressLine>1061 YORK ROAD</AddressLine>
<CityName>SYLVESTER</CityName>
<StateOrProvince>GA</StateOrProvince>
<PostalCode>317910000</PostalCode>
<PostalCountry>US</PostalCountry>
</AddressInformation>
</PartnerInformation>
</ShipTo>
<OtherPartner PartnerRole="ShipFrom">
<PartnerInformation>
<PartnerName>JIMMY SANDERS INC. - SYLVESTER</PartnerName>
<PartnerIdentifier
Agency="AGIIS-EBID">AA00831740000</PartnerIdentifier>
<AddressInformation>
<AddressLine>111 E INDUSTRIAL BLVD</AddressLine>
<CityName>SYLVESTER</CityName>
<StateOrProvince>GA</StateOrProvince>
<PostalCode>317917249</PostalCode>
<PostalCountry>US</PostalCountry>
</AddressInformation>
</PartnerInformation>
</OtherPartner>
<OtherPartner PartnerRole="SoldTo">
<PartnerInformation>
<PartnerName>SENKBEIL,WILLIAM T;</PartnerName>
<PartnerIdentifier Agency="AssignedBySeller">44469</PartnerIdentifier>
<AddressInformation>
<AddressLine>1061 YORK ROAD</AddressLine>
<CityName>SYLVESTER</CityName>
<StateOrProvince>GA</StateOrProvince>
<PostalCode>317910000</PostalCode>
<PostalCountry>US</PostalCountry>
</AddressInformation>
</PartnerInformation>
</OtherPartner>
<OtherPartner PartnerRole="BillToParty">
<PartnerInformation>
<PartnerName>SENKBEIL,WILLIAM T;</PartnerName>
<PartnerIdentifier Agency="AssignedBySeller">44469</PartnerIdentifier>
<AddressInformation>
<AddressLine>1061 YORK ROAD</AddressLine>
<CityName>SYLVESTER</CityName>
<StateOrProvince>GA</StateOrProvince>
<PostalCode>317910000</PostalCode>
<PostalCountry>US</PostalCountry>
</AddressInformation>
</PartnerInformation>
</OtherPartner>
</ProductMovementTransactionPartners>
<ProductMovementTransactionDetails>
<ProductMovementProductLineItem>
<LineNumber>1</LineNumber>
<ProductIdentification>
<ProductIdentifier
Agency="AssignedByManufacturer">10056045</ProductIdentifier>
<ProductName>BRIGADE 2EC</ProductName>
</ProductIdentification>
<ProductQuantity>
<Measurement>
<MeasurementValue>5</MeasurementValue>
<UnitOfMeasureCode Domain="UN-Rec-20">GLL</UnitOfMeasureCode>
</Measurement>
</ProductQuantity>
</ProductMovementProductLineItem>
</ProductMovementTransactionDetails>
</ProductMovementTransaction>
<ProductMovementTransaction>
<ProductMovementTransactionProperties ProductMovementType="StockSale"
SaleOrReturnType="EndUser">
<ReferenceInformation ReferenceType="InvoiceNumber">
<DocumentReference>
<DocumentIdentifier>39661</DocumentIdentifier>
</DocumentReference>
</ReferenceInformation>
<EventDateTime EventDateType="InvoiceDate">
<DateTime DateTimeQualifier="On">2011-12-01T09:48:14Z</DateTime>
</EventDateTime>
<LanguageCode Domain="ISO-639-2T">eng</LanguageCode>
<CurrencyCode Domain="ISO-4217">USD</CurrencyCode>
</ProductMovementTransactionProperties>
<ProductMovementTransactionPartners>
<ShipTo>
<PartnerInformation>
<PartnerName>SURE GREEN</PartnerName>
<PartnerIdentifier Agency="AssignedBySeller">18453</PartnerIdentifier>
<AddressInformation>
<AddressLine>P.O. BOX 14421</AddressLine>
<CityName>MONROE</CityName>
<StateOrProvince>LA</StateOrProvince>
<PostalCode>712070000</PostalCode>
<PostalCountry>US</PostalCountry>
</AddressInformation>
</PartnerInformation>
</ShipTo>
<OtherPartner PartnerRole="ShipFrom">
<PartnerInformation>
<PartnerName>JIMMY SANDERS INC. - MONROE</PartnerName>
<PartnerIdentifier
Agency="AGIIS-EBID">6238338810000</PartnerIdentifier>
<AddressInformation>
<AddressLine>100 SMELSER RD</AddressLine>
<CityName>MONROE</CityName>
<StateOrProvince>LA</StateOrProvince>
<PostalCode>712024023</PostalCode>
<PostalCountry>US</PostalCountry>
</AddressInformation>
</PartnerInformation>
</OtherPartner>
<OtherPartner PartnerRole="SoldTo">
<PartnerInformation>
<PartnerName>SURE GREEN</PartnerName>
<PartnerIdentifier Agency="AssignedBySeller">18453</PartnerIdentifier>
<AddressInformation>
<AddressLine>P.O. BOX 14421</AddressLine>
<CityName>MONROE</CityName>
<StateOrProvince>LA</StateOrProvince>
<PostalCode>712070000</PostalCode>
<PostalCountry>US</PostalCountry>
</AddressInformation>
</PartnerInformation>
</OtherPartner>
<OtherPartner PartnerRole="BillToParty">
<PartnerInformation>
<PartnerName>SURE GREEN</PartnerName>
<PartnerIdentifier Agency="AssignedBySeller">18453</PartnerIdentifier>
<AddressInformation>
<AddressLine>P.O. BOX 14421</AddressLine>
<CityName>MONROE</CityName>
<StateOrProvince>LA</StateOrProvince>
<PostalCode>712070000</PostalCode>
<PostalCountry>US</PostalCountry>
</AddressInformation>
</PartnerInformation>
</OtherPartner>
</ProductMovementTransactionPartners>
<ProductMovementTransactionDetails>
<ProductMovementProductLineItem>
<LineNumber>1</LineNumber>
<ProductIdentification>
<ProductIdentifier
Agency="AssignedByManufacturer">10053331</ProductIdentifier>
<ProductName>AIM EC</ProductName>
</ProductIdentification>
<ProductQuantity>
<Measurement>
<MeasurementValue>0.25</MeasurementValue>
<UnitOfMeasureCode Domain="UN-Rec-20">GLL</UnitOfMeasureCode>
</Measurement>
</ProductQuantity>
</ProductMovementProductLineItem>
</ProductMovementTransactionDetails>
</ProductMovementTransaction>
</ProductMovementTransactions>
</ProductMovementReportDetails>
</ProductMovementReportBody>
</ProductMovementReport>
-----ZMODEDI??gc0p4Jq0M2Yt50001--
Thanks!
Richard Medders
Sanders Logo
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------