ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Questions about Attachment in SoapInput node

Post new topic  Reply to topic
 Questions about Attachment in SoapInput node « View previous topic :: View next topic » 
Author Message
ginggo
PostPosted: Mon Mar 16, 2009 1:22 am    Post subject: Questions about Attachment in SoapInput node Reply with quote

Novice

Joined: 01 Mar 2009
Posts: 13
Location: Hong Kong

I got error 'Problem creating soap tree from bit stream' immediately after the SOAPInput Node.
The soap message I sent is with attachment.

Is SOAPInput Node able to process message with attachment?
how to configure it?
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Mar 16, 2009 8:32 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Yes the SOAPInput node can handle SOAP With Attachment (SwA) messages and MTOM messages. Can you post the exact (full) error and the input message you were using?
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
ginggo
PostPosted: Tue Mar 17, 2009 12:16 am    Post subject: Reply with quote

Novice

Joined: 01 Mar 2009
Posts: 13
Location: Hong Kong

The Error is just one line:
CHARACTER:problem creating SOAP tree from bitstream

The Message immediately after SoapInput node is like this:

Properties
MessageSet:CHARACTER:SendMailMessageSet
MessageType:CHARACTER:
MessageFormat:CHARACTER:
Encoding:INTEGER:273
CodedCharSetId:INTEGER:1208
Transactional:BOOLEAN:false
Persistence:BOOLEAN:false
CreationTime:TIMESTAMP:java.util.GregorianCalendar[time=1237223297140,areFieldsSet=true,areAllFieldsSet=false,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Asia/Taipei",offset=28800000,dstSavings=0,useDaylight=false,transitions=42,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=?,YEAR=2009,MONTH=2,WEEK_OF_YEAR=?,WEEK_OF_MONTH=?,DAY_OF_MONTH=17,DAY_OF_YEAR=?,DAY_OF_WEEK=?,DAY_OF_WEEK_IN_MONTH=?,AM_PM=0,HOUR=1,HOUR_OF_DAY=1,MINUTE=8,SECOND=17,MILLISECOND=140,ZONE_OFFSET=?,DST_OFFSET=?]
ExpirationTime:INTEGER:-1
Priority:INTEGER:0
ReplyIdentifier:BLOB:[B@72767276
ReplyProtocol:CHARACTER:SOAP-AXIS2
Topic:UNKNOWN:null
ContentType:CHARACTER:multipart/related; type="text/xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_13_16692260.1237253466052"
IdentitySourceType:CHARACTER:
IdentitySourceToken:CHARACTER:
IdentitySourcePassword:CHARACTER:
IdentitySourceIssuedBy:CHARACTER:
IdentityMappedType:CHARACTER:
IdentityMappedToken:CHARACTER:
IdentityMappedPassword:CHARACTER:
IdentityMappedIssuedBy:CHARACTER:

HTTPInputHeader
X-Original-HTTP-Command:CHARACTER:POST http://esbaixdev01:7804/SendMail HTTP/1.1
SOAPAction:CHARACTER:""
Content-Type:CHARACTER:multipart/related; type="text/xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_13_16692260.1237253466052"
Mime-Version:CHARACTER:1.0
User-Agent:CHARACTER:Jakarta Commons-HttpClient/3.1
Host:CHARACTER:esbaixdev01:7804
Content-Length:CHARACTER:29211
X-Remote-Addr:CHARACTER:57.28.150.42
X-Remote-Host:CHARACTER:57.28.150.42
X-Server-Name:CHARACTER:esbaixdev01
X-Server-Port:CHARACTER:7804
X-Query-String:CHARACTER:


I used SoapUI to generate this soap message, which is like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sen="http://cathaypacific.com/SendMailMessageSet">
<soapenv:Header/>
<soapenv:Body>
<sen:Mail>
<From>abc@def.com</From>
<To>abc1@def1.com</To>
<Subject>xx</Subject>
<Body>yy</Body>
</sen:Mail>
</soapenv:Body>
</soapenv:Envelope>
------=_Part_13_16692260.1237253466052
Content-Type: image/gif
Content-Transfer-Encoding: binary
[0xff][0xd8][0xff][0xe0][0x0][0x10]JFIF[0x0][0x1][0x2][0x1][0x1],[0x1],[0x0][0x0][0xff][0xed][0x9]LPhotoshop 3.0[0x0]8BIM[0x3][0xed]
Tue Mar 17 09:35:11 GMT+08:00 2009:DEBUG:>> "Resolution[0x0][0x0][0x0][0x0][0x10][0x1],[0x0][0x0][0x0][0x1][0x0][0x1][0x1],[0x0][0x0][0x0][0x1][0x0][0x1]8BIM[0x4][\r][0x18]FX Global Lighting Angle[0x0][0x0][0x0][0x0][0x4][0x0][0x0][0x0]x8BIM[0x4][0x19][0x12]FX Global Altitude[0x0][0x0][0x0][0x0][0x4][0x0][0x0][0x0][0x1e]8BIM[0x3][0xf3][0xb]Print Flags[0x0][0x0][0x0][0x9][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x1][0x0]8BIM[0x4]
[0xe]Copyright Flag[0x0][0x0][0x0][0x0][0x1][0x0][0x0]8BIM'[0x10][0x14]Japanese Print Flags[0x0][0x0][0x0][0x0]
[0x0][0x1][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x2]8BIM[0x3][0xf5][0x17]Color Halftone Settings[0x0][0x0][0x0]H[0x0]/ff[0x0][0x1][0x0]lff[0x0][0x6][0x0][0x0][0x0][0x0][0x0][0x1][0x0]/ff[0x0][0x1][0x0][0xa1][0x99][0x9a][0x0][0x6][0x0][0x0][0x0][0x0][0x0][0x1][0x0]2[0x0][0x0][0x0][0x1][0x0]Z[0x0][0x0][0x0][0x6][0x0][0x0][0x0][0x0][0x0][0x1][0x0]5[0x0][0x0][0x0][0x1][0x0]-[0x0][0x0][0x0][0x6][0x0][0x0][0x0][0x0][0x0][0x1]8BIM[0x3][0xf8][0x17]Color Transfer Settings[0x0][0x0][0x0]p[0x0][0x0][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0x3][0xe8][0x0][0x0][0x0][0x0][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0x3][0xe8][0x0][0x0][0x0][0x0][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0x3][0xe8][0x0][0x0][0x0][0x0][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0xff][0x3][0xe8][0x0][0x0]8BIM[0x4][0x8][0x6]Guides[0x0][0x0][0x0][0x0][0x10][0x0][0x0][0x0][0x1][0x0][0x0][0x2]@[0x0][0x0][0x2]@[0x0][0x0][0x0][0x0]8BIM[0x4][0x1e][\r]URL overrides[0x0][0x0][0x0][0x4][0x0][0x0][0x0][0x0]8BIM[0x4][0x1a][0x6]Slices[0x0][0x0][0x0][0x0]u[0x0][0x0][0x0][0x6][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x2]X[0x0][0x0][0x3] [0x0][0x0][0x0]
[0xc0]I$;[0xa4]C[0xb4][0xee]T[0xce][0x8b][0x9f]I%[0x1e][0x8e][0xeb][0x8c]G[0x9a][0x93]J[0xc0]I$[0xf4][0xff][0xd9]
------=_Part_13_16692260.1237253466052
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Mar 17, 2009 1:55 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Disconnect the debugger and take a user trace. You are likely to get better and more readable error messages that way.
Back to top
View user's profile Send private message
ginggo
PostPosted: Thu Mar 19, 2009 1:02 am    Post subject: Reply with quote

Novice

Joined: 01 Mar 2009
Posts: 13
Location: Hong Kong

i couldn't find any error message from the trace.

( ['SOAPRoot' : 0x111511990]
(0x01000000:Name):Properties = ( ['SOAPPROPERTYPARSER' : 0x1118fec90]
(0x03000000:NameValue):MessageSet = 'SendMailMessageSet' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 273 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Transactional = FALSE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2009-03-19 08:27:00.359907' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'SOAP-AXIS2' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = 'multipart/related; type="text/xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_4_1163366.1237451
301213"' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name):HTTPInputHeader = ( ['WSINPHDR' : 0x113016410]
(0x03000000:NameValue):X-Original-HTTP-Command = 'POST http://esbaixdev01:7804/SendMail HTTP/1.1' (CHARACTER)
(0x03000000:NameValue):SOAPAction = '""' (CHARACTER)
(0x03000000:NameValue):Content-Type = 'multipart/related; type="text/xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_4_1163366.123745
1301213"' (CHARACTER)
(0x03000000:NameValue):Mime-Version = '1.0' (CHARACTER)
(0x03000000:NameValue):User-Agent = 'Jakarta Commons-HttpClient/3.1' (CHARACTER)
(0x03000000:NameValue):Host = 'esbaixdev01:7804' (CHARACTER)
(0x03000000:NameValue):Content-Length = '29205' (CHARACTER)
(0x03000000:NameValue):X-Remote-Addr = '57.28.150.42' (CHARACTER)
(0x03000000:NameValue):X-Remote-Host = '57.28.150.42' (CHARACTER)
(0x03000000:NameValue):X-Server-Name = 'esbaixdev01' (CHARACTER)
(0x03000000:NameValue):X-Server-Port = '7804' (CHARACTER)
(0x03000000:NameValue):X-Query-String = '' (CHARACTER)
(0x03000000:NameValue):X-Scheme = 'http' (CHARACTER)
)
(0x01000000:Name):SOAP = ( ['SOAPRoot' : 0x111511990]
(0x01000000:Name):Properties = ( ['SOAPPROPERTYPARSER' : 0x1118fec90]
(0x03000000:NameValue):MessageSet = 'SendMailMessageSet' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 273 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Transactional = FALSE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2009-03-19 08:27:00.359907' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'SOAP-AXIS2' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = 'multipart/related; type="text/xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_5_9611106.1237451
309198"' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name):HTTPInputHeader = ( ['WSINPHDR' : 0x113016410]
(0x03000000:NameValue):X-Original-HTTP-Command = 'POST http://esbaixdev01:7804/SendMail HTTP/1.1' (CHARACTER)
(0x03000000:NameValue):SOAPAction = '""' (CHARACTER)
(0x03000000:NameValue):Content-Type = 'multipart/related; type="text/xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_5_9611106.123745
1309198"' (CHARACTER)
(0x03000000:NameValue):Mime-Version = '1.0' (CHARACTER)
(0x03000000:NameValue):User-Agent = 'Jakarta Commons-HttpClient/3.1' (CHARACTER)
(0x03000000:NameValue):Host = 'esbaixdev01:7804' (CHARACTER)
(0x03000000:NameValue):Content-Length = '29205' (CHARACTER)
(0x03000000:NameValue):X-Remote-Addr = '57.28.150.42' (CHARACTER)
(0x03000000:NameValue):X-Remote-Host = '57.28.150.42' (CHARACTER)
(0x03000000:NameValue):X-Server-Name = 'esbaixdev01' (CHARACTER)
(0x03000000:NameValue):X-Server-Port = '7804' (CHARACTER)
(0x03000000:NameValue):X-Query-String = '' (CHARACTER)
(0x03000000:NameValue):X-Scheme = 'http' (CHARACTER)
)
(0x01000000:Name):SOAP =
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Mar 19, 2009 1:25 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
i couldn't find any error message from the trace.
You have posted the output from a Trace node. I asked for a user trace, which is not the same thing.

Please perform the following steps via the command line:
Code:
mqsichangetrace [BROKER NAME] -e [EXEC GROUP NAME] -u -r -l debug
...put your message through the flow
mqsichangetrace [BROKER NAME] -e [EXEC GROUP NAME] -u -r -l none
mqsireadlog [BROKER NAME] -e default -u -f -o [FILENAME.xml]
mqsiformatlog -i [FILENAME.xml] -o [FILENAME.txt]
Back to top
View user's profile Send private message
mgk
PostPosted: Thu Mar 19, 2009 1:53 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

OK, the error message is telling you that your input is wrong, and it is if what you posted earlier is what you are actually sending in. Here is an example complete SwA message. Make sure your message looks like this in terms of where the MIME boundaries are. Note also that the message starts with a MIME boundary, NOT a SOAP Message. The SOAP Message is just the first part of the MIME message...

Code:
POST /foo/mgk HTTP/1.1
Content-Type: multipart/related; boundary=BBB; type="text/xml"; start="mgk";charset=UTF-8
Content-Length: 527

--BBB
content-type:text/xml; charset=UTF-8
content-id: <mgk>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://ns2" xmlns:ns1="http://wss001.miwssoap.broker.mqst.ibm.com"><SOAP-ENV:Header><ns2:h1>hdr1</ns2:h1><ns2:h2><href>cid:XXX</href></ns2:h2></SOAP-ENV:Header><SOAP-ENV:Body><ns1:timesTen>3</ns1:timesTen></SOAP-ENV:Body></SOAP-ENV:Envelope>
--BBB
content-type:application/octet-stream
content-transfer-encoding:quoted-printable
content-id:<XXX>

hello=3D
--BBB--

_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Questions about Attachment in SoapInput node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.