当前位置: 动力学知识库 > 问答 > 编程问答 >

web services - Objective C webservices error: "Soap method is not allowed to invoke"

问题描述:

I am trying to implement a webservice call in objective C. I get the following error when I try to access a webservice. I tried using WSDL2objc to generate the code.

Error:

2013-01-31 14:53:15.911 FPechoTest[9371:907] OutputHeaders:

{

"Content-Length" = 383;

"Content-Type" = "text/xml; charset=utf-8";

Host = "165.91.121.86";

SOAPAction = "http://localhost/axis/echo/handShake";

"User-Agent" = wsdl2objc;

}

2013-01-31 14:53:15.915 FPechoTest[9371:907] OutputBody:

<?xml version="1.0"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:echo="http://localhost/axis/echo/" xsl:version="1.0">

<soap:Body>

<shakeRequest>egg</shakeRequest>

</soap:Body>

</soap:Envelope>

2013-01-31 14:53:16.003 FPechoTest[9371:907] ResponseStatus: 200

2013-01-31 14:53:16.004 FPechoTest[9371:907] ResponseHeaders:

{

Connection = "Keep-Alive";

"Content-Length" = 555;

"Content-Type" = "text/xml";

Date = "Thu, 31 Jan 2013 20:53:12 GMT";

"Keep-Alive" = "timeout=15, max=100";

Server = "Apache/2.0.64 (Win32)";

}

2013-01-31 14:53:16.006 FPechoTest[9371:907] ResponseBody:

<?xml version='1.0' encoding='utf-8' ?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SOAP-ENV:Body>

<SOAP-ENV:Fault>

<faultcode>SOAP-ENV:Client</faultcode>

<faultstring>Soap method is not allowed to invoke</faultstring>

<faultactor>server name:listen port</faultactor>

<detail><appSpecific>AxisWsddException:Requested method is not allowed</appSpecific>

</detail>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Can someone help me out here? Why am I getting this "AxisWsddException:Requested method is not allowed".?? Is it some problem from my objective C side client? the server side code is written in C++ and sits on an apache server.

分享给朋友:
您可能感兴趣的文章:
随机阅读: