Hi Newsgroup,
im currently working on programming a asp.net application consuming an
Webservice hosted on Apache/Axis. I have generated WSDL and Proxy
classes from VisualStudio.net. But when trying to fire up one method i
get following error:
System.Web.Services.Protocols.SoapHeaderException: Method
'tns:prodsearch' not implemented
Line 55: [return:
System.Xml.Serialization.SoapElementAttribute("err orCode")]
Line 56: public int prodsearch(prodsearchreq reqp, out string
errorMsg, out prodsearchresponse resp) {
Line 57: object[] results = this.Invoke("prodsearch", new
object[] {
Line 58: reqp});
Line 59: errorMsg = ((string)(results[1]));
[SoapHeaderException: Method 'tns:prodsearch' not implemented]
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
multibooker.WsBookingService.BookingService.prodse arch(prodsearchreq
reqp, String& errorMsg, prodsearchresponse& resp) in
C:\Projekte\multibooker_2.0\multibooker_sol\multib ooker\Web
References\WsBookingService\Reference.cs:57
multibooker.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\projekte\multibooker_2.0\multibooker_sol\multib ooker\default.aspx.cs:45
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
The error is thrown on line 57!
I have impleneted the TraceExtension Example from MSDN and get the
following SOAP Protocols:
-----SoapRequest at 15.08.2003 12:08:51
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://websvc.worldres.com/BookingService"
xmlns:types="http://websvc.worldres.com/BookingService/encodedTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><tns:prodsearch><reqp
href="#id1" /></tns:prodsearch><tns:prodsearch-req id="id1"
xsi:type="tns:prodsearch-req"><token
xsi:type="xsd:string">55TVLISD34</token><langId
xsi:type="xsd:int">1</langId><currency
xsi:type="xsd:string">USD</currency><checkInDay
xsi:type="xsd:int">10</checkInDay><checkInMonth
xsi:type="xsd:int">9</checkInMonth><checkInYear
xsi:type="xsd:int">2003</checkInYear><numNights
xsi:type="xsd:int">1</numNights><hotelId
xsi:type="xsd:int">6484</hotelId><capacityType
xsi:type="xsd:int">1</capacityType><priceId
xsi:type="xsd:int">1</priceId><numAdult
xsi:type="xsd:int">1</numAdult><numChild
xsi:type="xsd:int">0</numChild><numRoom
xsi:type="xsd:int">1</numRoom></tns:prodsearch-req></soap:Body></soap:Envelope>
-----SoapResponse at 15.08.2003 12:08:55
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://websvc.worldres.com/BookingService"><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Method
'tns:prodsearch' not
implemented</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
-----SoapRequest at 15.08.2003 12:30:13
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://websvc.worldres.com/BookingService"
xmlns:types="http://websvc.worldres.com/BookingService/encodedTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><tns:prodsearch><reqp
href="#id1" /></tns:prodsearch><tns:prodsearch-req id="id1"
xsi:type="tns:prodsearch-req"><token
xsi:type="xsd:string">TEST</token><langId
xsi:type="xsd:int">1</langId><currency
xsi:type="xsd:string">USD</currency><checkInDay
xsi:type="xsd:int">10</checkInDay><checkInMonth
xsi:type="xsd:int">9</checkInMonth><checkInYear
xsi:type="xsd:int">2003</checkInYear><numNights
xsi:type="xsd:int">1</numNights><hotelId
xsi:type="xsd:int">6484</hotelId><capacityType
xsi:type="xsd:int">1</capacityType><priceId
xsi:type="xsd:int">1</priceId><numAdult
xsi:type="xsd:int">1</numAdult><numChild
xsi:type="xsd:int">0</numChild><numRoom
xsi:type="xsd:int">1</numRoom></tns:prodsearch-req></soap:Body></soap:Envelope>
-----SoapResponse at 15.08.2003 12:30:17
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://websvc.worldres.com/BookingService"><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Method
'tns:prodsearch' not
implemented</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Any help appreciated.
Artur