Bu nedenle, yeni bir java tabanlı webservis istemcisine doğru hizmet veren yeni Axis2 MTOM Web servisine sahibim.Axis2 Tüketmek için MTOM Webservice ve .NET İstemcisi
Hizmet (veya web) referansını vs2008'e eklemeye çalıştığımda ve oluşturulan kodla birlikte tüketmeye başladığımda sorun ortaya çıkıyor. ,
- Biz tepkisini alırken Biz hizmet
- diyoruz
- gerekli nesneleri (istemci, istek ve parametre nesne) oluşturun: Şimdiye kadar tamam ... bu ne olur her şeydir Bu mesajla bir istisna atar:
Client found response content type of 'multipart/related;
boundary=MIMEBoundaryurn_uuid_6C47CADDECCCB90D951282776406454;
type="application/xop+xml"; start="
<0.urn:uuid:[email protected]>"; start-info="text/xml"',
but expected 'text/xml'.
The request failed with the error message:
MIMEBoundaryurn_uuid_6C47CADDECCCB90D951282776406454
Content-Type: application/xop+xml; charset=utf-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:[email protected]>
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:sendImageResponse xmlns:ns="http://org/company/ws/services/filetransfer/"><ns:return xmlns:ax213="http://filetransfer.objects.ws.company.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ax215="http://filetransfer.responses.objects.ws.company.com/xsd" xsi:type="ax215:SendImageResponse"><ax215:errorCode>1060</ax215:errorCode><ax215:errorMessage>Error ejecutando el servicio</ax215:errorMessage><ax215:output>1060</ax215:output></ns:return></ns:sendImageResponse></soapenv:Body></soapenv:Envelope>
MIMEBoundaryurn_uuid_6C47CADDECCCB90D951282776406454
Ç Soru
axis Aks2 web servisinin cevabı mimetype olarak nasıl ayarlanır?
Ne tür bir bağlayıcı kullanıyorsunuz? – VinayC
SOAP 1.1 HTTP bağlaması –