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 » SOAPRequest - Receiving mtom response

Post new topic  Reply to topic
 SOAPRequest - Receiving mtom response « View previous topic :: View next topic » 
Author Message
pvsp
PostPosted: Fri Feb 20, 2015 2:34 am    Post subject: SOAPRequest - Receiving mtom response Reply with quote

Apprentice

Joined: 17 Feb 2008
Posts: 36
Location: Warsaw, PL

I have problem with receiving mtom response using SOAPRequest. I need to invoke webservice and I know it works fine. I did soapui test:

Code:

POST https://192.168.1.1/iCalculus/VAPI/ResourceAPI.svc HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://tempuri.org/IResourceAPI/GetDocumentsAsOne"
Content-Length: 615
Host: 192.168.1.1
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:vapi="VAPI" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
   <soapenv:Header/>
   <soapenv:Body>
<out2:GetDocumentsAsOne xmlns:io="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:out2="http://tempuri.org/" xmlns:out3="VAPI">
   <out2:iData>
      <out3:Locale>pl-PL</out3:Locale>
      <out3:Password/>
      <out3:User/>
   </out2:iData>
   <out2:dataSetIds>
      <io:long>1342456</io:long>
   </out2:dataSetIds>
</out2:GetDocumentsAsOne>
   </soapenv:Body>
</soapenv:Envelope>


and I get the response

Code:

HTTP/1.1 200 OK
Content-Length: 820
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:f0451024-077d-45e1-a704-5ee304f8706e+id=34";start-info="text/xml"
Server: Microsoft-IIS/7.5
MIME-Version: 1.0
X-Powered-By: ASP.NET
X-Powered-By: ARR/2.5
X-Powered-By: ASP.NET
Date: Fri, 20 Feb 2015 10:17:42 GMT


--uuid:f0451024-077d-45e1-a704-5ee304f8706e+id=34
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope
/"><s:Body><GetDocumentsAsOneResponse xmlns="http://tempuri.org
/"><GetDocumentsAsOneResult z:Id="1" xmlns:a="VAPI"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:z="http://schemas.microsoft.com/2003/10/Serialization
/"><a:Documents i:nil="true" xmlns:b="http://schemas.datacontract.org
/2004/07/Varyon.Core.ResourceManagementSystem"/><a:Result
z:Id="2"><a:Code>100</a:Code><a:Message z:Id="3">Błąd
ogólny</a:Message></a:Result></GetDocumentsAsOneResult>
</GetDocumentsAsOneResponse></s:Body></s:Envelope>
--uuid:f0451024-077d-45e1-a704-5ee304f8706e+id=34--


But, I wont to use Soap Request node. I set "Allow MTOM" property and after invoking, I always get the error like below:

Code:

RecoverableException
   File:CHARACTER:/build/slot1/S900_P/src/DataFlowEngine/MessageServices/ImbDataFlowNode.cpp
   Line:INTEGER:1155
   Function:CHARACTER:ImbDataFlowNode::createExceptionList
   Type:CHARACTER:ComIbmSOAPRequestNode
   Name:CHARACTER:lip/soap/RegisterPolicy#FCMComposite_1_13
   Label:CHARACTER:lip.soap.RegisterPolicy.getDoc
   Catalog:CHARACTER:BIPmsgs
   Severity:INTEGER:3
   Number:INTEGER:2230
   Text:CHARACTER:Node throwing exception
   Insert
         Type:INTEGER:14
         Text:CHARACTER:lip.soap.RegisterPolicy.getDoc
   RecoverableException
         File:CHARACTER:/build/slot1/S900_P/src/WebServices/WSLibrary/ImbSOAPRequestNode.cpp
         Line:INTEGER:846
         Function:CHARACTER:ImbSOAPRequestNode::requestData
         Type:CHARACTER:ComIbmSOAPRequestNode
         Name:CHARACTER:lip/soap/RegisterPolicy#FCMComposite_1_13
         Label:CHARACTER:lip.soap.RegisterPolicy.getDoc
         Catalog:CHARACTER:BIPmsgs
         Severity:INTEGER:3
         Number:INTEGER:3754
         Text:CHARACTER:Error occurred in ImbSOAPRequestHelper::makeSOAPRequest()
         RecoverableException
               File:CHARACTER:/build/slot1/S900_P/src/WebServices/WSLibrary/ImbSOAPRequestHelper.cpp
               Line:INTEGER:3610
               Function:CHARACTER:ImbSOAPRequestHelper::logWebServiceInvocationException
               Type:CHARACTER:
               Name:CHARACTER:
               Label:CHARACTER:
               Catalog:CHARACTER:BIPmsgs
               Severity:INTEGER:3
               Number:INTEGER:3162
               Text:CHARACTER:WebService Request Exception
               Insert
                     Type:INTEGER:12
                     Text:CHARACTER:436f6e74656e742d4c656e6774683a203530310d0a436f
6e74656e742d547970653a206170706c69636174696f6e2f736f61702b786d
6c3b20636861727365743d7574662d380d0a486f73743a203137322e33302
e3234382e36360d0a534f4150416374696f6e3a2022687474703a2f2f74656
d707572692e6f72672f495265736f757263654150492f476574446f63756d65
6e747341734f6e65220d0a436f6e6e656374696f6e3a204b6565702d416c69
76650d0a0d0a
               Insert
                     Type:INTEGER:12
                     Text:CHARACTER:3c3f786d6c2076657273696f6e3d22312e302220656e63
6f64696e673d227574662d38223f3e3c736f6170656e763a456e76656c6f706
520786d6c6e733a736f6170656e763d22687474703a2f2f7777772e77332e6
f72672f323030332f30352f736f61702d656e76656c6f7065223e3c736f61706
56e763a426f64793e3c6f7574323a476574446f63756d656e747341734f6e6
520786d6c6e733a6f7574323d22687474703a2f2f74656d707572692e6f726
72f2220786d6c6e733a6f7574333d22564150492220786d6c6e733a696f3d2
2687474703a2f2f736368656d61732e6d6963726f736f66742e636f6d2f3230
30332f31302f53657269616c697a6174696f6e2f417272617973223e3c6f757
4323a69446174613e3c6f7574333a4c6f63616c653e706c2d504c3c2f6f7574
333a4c6f63616c653e3c6f7574333a50617373776f72643e3c2f6f7574333a5
0617373776f72643e3c6f7574333a557365723e3c2f6f7574333a557365723e
3c2f6f7574323a69446174613e3c6f7574323a646174615365744964733e3c
696f3a6c6f6e673e313334323435373c2f696f3a6c6f6e673e3c2f6f7574323a
646174615365744964733e3c2f6f7574323a476574446f63756d656e747341
734f6e653e3c2f736f6170656e763a426f64793e3c2f736f6170656e763a456
e76656c6f70653e
               Insert
                     Type:INTEGER:12
                     Text:CHARACTER:485454502f312e31203431352043616e6e6f742070726f6
365737320746865206d65737361676520626563617573652074686520636f
6e74656e74207479706520276170706c69636174696f6e2f736f61702b786d
6c3b20636861727365743d7574662d382720776173206e6f7420746865206
578706563746564207479706520276d756c7469706172742f72656c617465
643b20747970653d226170706c69636174696f6e2f786f702b786d6c22272e
0d0a436f6e74656e742d4c656e6774683a20300d0a5365727665723a204d6
963726f736f66742d4949532f372e350d0a4d494d452d56657273696f6e3a2
0312e300d0a582d506f77657265642d42793a204153502e4e45540d0a582d
506f77657265642d42793a204152522f322e350d0a582d506f77657265642d
42793a204153502e4e45540d0a446174653a204672692c203230204665622
0323031352030383a35373a333620474d540d0a0d0a

               Insert
                     Type:INTEGER:5
                     Text:CHARACTER:
               Insert
                     Type:INTEGER:5
                     Text:CHARACTER:POST /iCalculus/VAPI/ResourceAPI.svc HTTP/1.1

               RecoverableException
                     File:CHARACTER:/build/slot1/S900_P/src/WebServices/WSLibrary/ImbSOAPRequestHelper.cpp
                     Line:INTEGER:2253
                     Function:CHARACTER:ImbSOAPRequestHelper::makeSOAPRequest
                     Type:CHARACTER:
                     Name:CHARACTER:
                     Label:CHARACTER:
                     Catalog:CHARACTER:BIPmsgs
                     Severity:INTEGER:3
                     Number:INTEGER:3691
                     Text:CHARACTER:SyncRequest HTTP Error returned
                     Insert
                           Type:INTEGER:5
                           Text:CHARACTER:HTTP/1.1 415 Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'multipart/related; type="application/xop+xml"'.
                     Insert
                           Type:INTEGER:5
                           Text:CHARACTER:http://192.168.1.1/iCalculus/VAPI/ResourceAPI.svc


Do I need to do extra configuration in order to have possibility to run webservices with mtom ?
Back to top
View user's profile Send private message
pvsp
PostPosted: Fri Feb 20, 2015 4:53 am    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2008
Posts: 36
Location: Warsaw, PL

Problem solved. Webservice vendor has changed wsdl definition and we didn't get information about it. Arter reimporting wsdl to project, works
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 » SOAPRequest - Receiving mtom response
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.