cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple MIME through HTTP Post

Former Member
0 Kudos

Hello,

I need to send Multiple MIME document to third party URL with following format:

Message-ID:

Date:

Mime-Version: 1.0

Content-Type: multipart/related;

boundary="----=_Part_21_.....

Content-ID:

x-Date-Sent:

x-Document-Type: Order

x-Priority:

x-Correlation-Id:

x-Request-Mode: peer-peer; ack=yes; delivery=express

x-Request-Annotation: normal

x-Sender-Id:

x-Message-Format: Commerce One 1.0 N; owner="Commerce One"; version=1.0; date="June 1999"; variant=N

x-Recipient-Id:

x-Date-Recieved:

x-Message-Id:

-


=_Part_21_....

Content-Type: application/xml; owner=x-commerceone; version=1.0; type=Order;

ns="urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0"; charset=UTF-8

Content-Transfer-Encoding: 7bit

Content-ID:

Content-Description:

Content-Disposition: inline

<?soxtype urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0?>

<Order>

<OrderHeader>

....

</OrderHeader>

.....

</Order>

-


=_Part_21_.....

Content-Type: application/xml; owner=x-commerceone; version=1.0; type=catalog;

ns="urn:x-commerceone:document:com:commerceone:xdk:xml:catalog.dtd$1.0"; charset=UTF-8

Content-Transfer-Encoding: 7bit

Content-ID:

Content-Description: Catalog

Content-Disposition: inline

<?xml version="1.0"?>

<!DOCTYPE catalog [

<!ELEMENT catalog ((map)*) >

<!ELEMENT map EMPTY >

<!ATTLIST map

uri CDATA #REQUIRED

to CDATA #REQUIRED >

]>

<catalog>

</catalog>

-


=_Part_21_.......

Is this possible through HTTP Adapter?

Can I use prolog and epilog to send envelope information?

I have to send this to webmethods. Previously same data was sent using marketset connector of BC.

Please help....

Thanks,

Beena.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

You can create the whole multipart part with Java mapping.

I am not sure of you the use of prolog and epilog provides you with enough flexibility.

Regards

Stefan

Answers (3)

Answers (3)

Former Member
0 Kudos

Thnaks Stefan,

I understood how to create MIME but I have another issue.

As I mentioned earlier the recipient is WebMethods.

Previously Business Connector Marketconnect adapter was communicating with WebMethods marketconnect adapter, so there was no issue with message format.

The receiver flow service expects commerceone envelope as input.

Now I need to replace BC marketconnect adapter with XI. There is no marketplace involved, it directly communicates with Webmethods marketconnect. As I will send the multipart mime to flow service, it will be received as string and flow service will not be able to accept it as it expects commerceone envelope structure.

How should I solve this?

Please help.

Thanks,

Beena.

Former Member
0 Kudos

Similar problem..

Any input experts??

Former Member
0 Kudos

marketplace adapter resolved the issue.

Former Member
0 Kudos

Hi Stefan,

Do I need to hardcode boundary in content-type?

Also while creating multipart mime using java mapping how do I specify MessageId, ContentId and CorrelationId?

Thanks,

Beena.

stefan_grube
Active Contributor
0 Kudos

from the first content-type downwards everything has to be done in the Java Mapping.

Look at this blog:

/people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping

This should show the principle.

Stefan

Former Member
0 Kudos

Hi Stefan,

Thanks .....but is it possible to send multipart mime using HTTP adapter.

I have webmethods flowservice at receiving end which expects commerceone envelope (the structure i have already specified).

Thanks,

Beena.

stefan_grube
Active Contributor
0 Kudos

yes, sure. Just apply multipart/related; boundary="----=_Part_21_.....

as content type.

Regards

Stefan