|
> BTW, why did u explicitly disable MTOM ? My goal is to send SOAP 1.2 attachments using MTOM,
but unfortunately I get only a "Invalid Content Type Field in the Mime
Message" response from server if I try this with SOAP 1.2. So, I decided
to disable MTOM. But, you're right, it's not necessary to explicit
disable MTOM. It's enough if I set optimization to false for the OM-object
which holds the attachment-data. Here's the request which works fine with SOAP1.1 --- POST /myservice HTTP/1.1 User-Agent: Axis/2.0 SOAPAction: process Host: localhost:8081 Transfer-Encoding: chunked Content-Type: text/xml; charset=UTF-8 7b8 <?xml version='1.0'
encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
/><soapenv:Body> ... <api:attachments> <api:attachment>
<attachment-id>1</attachment-id>
<attachment-name>test-data</attachment-name>
<attachment-data>PHNvYXBlbnY6RW52ZWxvcGUgeG1sbnM6c29hcGVudj0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5...</attachment-data> </api:attachment> </api:attachments> ... </soapenv:Body></soapenv:Envelope> 0 --- And here the request if I switch to SOAP 1.2 with setSoapVersionURI
method. The server response to this request is org.apache.axis2.AxisFault:
org.apache.axis2.AxisFault: Operation Not found EPR is http://localhost:8081/myservice
and WSA Action ="" null at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:46) at
org.apache.axis2.engine.Phase.invoke(Phase.java:393) --- POST /myservice HTTP/1.1 User-Agent: Axis/2.0 Host: localhost:8081 Transfer-Encoding: chunked Content-Type: application/soap+xml; charset=UTF-8;action=""> 7b6 <?xml version='1.0'
encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
/><soapenv:Body> ... <api:attachments> <api:attachment>
<attachment-id>1</attachment-id>
<attachment-name>test-data</attachment-name>
<attachment-data>PHNvYXBlbnY6RW52ZWxvcGUgeG1sbnM6c29hcGVudj0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvc29hcC9lbnZlbG9wZS8iIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5...</attachment-data> </api:attachment> </api:attachments> ... </soapenv:Body></soapenv:Envelope> 0 --- I’m using Axis2 0.95 Regards, Sebastian |
- RE: [Axis2] Operation Not found .. and WSA Action = nu... Sebastian Szczygiel
- Re: [Axis2] Operation Not found .. and WSA Action... Eran Chinthaka
