[ palilulac @ 03.11.2009. 11:23 ] @
Imam VS2008, kreirao sam web service koji ima web referencu do jednog wsdl fajla i C# klasu koja je konvertovana iz tog wsdl fajla. Ta C# klasa ima metodu login() koju poziva instanca te klase a poenta je logovati se na jedan Javin web service. Medjutim, dobijem sledecu gresku: System.InvalidOperationException: Client found response content type of 'multipart/related; boundary=MIMEBoundaryurn_uuid_44837CD498F7CDFE9F1257246645212; 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_44837CD498F7CDFE9F1257246645212 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/soa...y><soapenv:Fault xmlns:axis2ns8="http://schemas.xmlsoap.org/soa...<faultstring>The service cannot be found for the endpoint reference (EPR) http://localhost:8080/pd2/serv...ltstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope> --MIMEBoundaryurn_uuid_44837CD498F7CDFE9F1257246645212-- --. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at SessionService2.login(String username, String password) in C:\Documents and Settings\...\My Documents\Visual Studio 2008\Projects\TestClient2\TestClient2\SessionProxy.cs:line 91 at TestClient2.Service1.getLogin() in C:\Documents and Settings\...\My Documents\Visual Studio 2008\Projects\TestClient2\TestClient2\Service1.asmx.cs:line 37 Javin servis je podesen tj Axis.xml <parameter name="hotdeployment">true</parameter> <parameter name="hotupdate">false</parameter> <parameter name="enableMTOM">true</parameter> <parameter name="enableSwA">true</parameter> i kapiram da bi trebalo i u C# da podesim Mtom. Moze li pomoc kako to da uradim??? |