I have to consume an existant WS that returns a PDF attachment (Swaref with MTOM enabled).
I’ve created the Web descripter consumer in webMethods and the type of attributes that returns the data is :
Thanks for your reply.
I set the Attachment property of my Descriptor service to true, but when I’m testing the WS in SoapUI, I still do not see the attachment link.
(when I test the initial WS in SoapUI, I can see the link in the attachment tab)
Am in not missing anything else, I do not have to convert my swaref attribute ?
I have never succedeed in getting byte data from Swaref attribute. Enabling MTOM did the not change the issue.
I’ve tried to write the file on the file system, but the file was invalid.
The only solution i’ve found, is to change the source Consumer attribute and make it “base64Binary” to receive a XOPObject :
For any MTOM implementation the data type which you want to receive in compressed format should be set as base64Binary and then while importing we need to select the check box in order to make it an XOP object.
I have attached a comparison file which show what will happen even if we set the data type as base64Binary and didn’t select the check box while consuming the WSDL.
I am also facing the same issue and even after enabling the MTOM while creating the consumer, I am unable to get the pdf documents in the XOP object.I have also enabled extended settings on IS needed for MTOM.
Following error is thrown from pub.client.soapClient call:
S.0088.9139] Output parameters do not conform to targetOutputSignature:
errorCode=VV-004
pathName=/tns:getResultResponse/tns:ServiceResult/tns:Document
errorMessage=[ISC.0082.9033] Java type mismatch; expected com.wm.util.XOPObject, got com.wm.app.b2b.services.CValues
errorCode=VV-004
pathName=/tns:getResultResponse/tns:ServiceResult/tns:Report
errorMessage=[ISC.0082.9033] Java type mismatch; expected com.wm.util.XOPObject, got com.wm.app.b2b.services.CValues
errorCode=VV-004
pathName=/tns:getResultResponse/tns:ServiceResult/tns:Signature
errorMessage=[ISC.0082.9033] Java type mismatch; expected com.wm.util.XOPObject, got com.wm.app.b2b.services.CValues
In my case I cannot change the service that is sending the data.It is some service provider. I have created connectors using the provider’s WSDL . And yes i have enabled the attachment to true. The data they are sending are 3 attachements .I have attached the success I received from SOAP UI. The data that connector is expecting is of type XOP objects. From Soap UI sucess the attachments have XOP as a type(as per my understanding). I don’t understand why it is not getting populated. Can I do some response processing to map what is returned by provider to correct data type.