yeah that ;-) and agreement on the 1.2!!!
On Tue, 24 Aug 2004 17:39:14 -0400, Anne Thomas Manes <[EMAIL PROTECTED]> wrote: > First -- there is no way to define a "default" namespace in WSDL. But I > suspect what Paul meant to ask is whether your WSDL specifies > elementFormDefault="qualified", which it does. > > What this means is that all child elements must be namespace qualified. > > Either of the following requests should work: > > <soap:Body> > <DoKeywordSearch > xmlns="http://dinoch.dyndns.org/webservices/books"> > <keyword>string</keyword> > </DoKeywordSearch> > </soap:Body> > > <soap:Body> > <ns1:DoKeywordSearch > Xmlns:ns1="http://dinoch.dyndns.org/webservices/books"> > <ns1:keyword>string</ns1:keyword> > </ns1:DoKeywordSearch> > </soap:Body> > > I recommend that you migrate to Axis 1.2. Axis 1.1 doesn't handle > doc/literal very well. > > Anne > > > > -----Original Message----- > From: Uday Kamath [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 24, 2004 11:58 AM > To: [EMAIL PROTECTED]; Paul Callahan > Subject: RE: Axis with .Net WebService > > Thanks for responding. The wsdl is as shown below, there is no default > namespace from what I understand..Since this is external web service > hosted by this company, we have no control, also I saw the same behavior > for many of .Net webservices....Do you have a solution > > <definitions > targetNamespace="http://dinoch.dyndns.org/webservices/books"> > - > <types> > - > <s:schema elementFormDefault="qualified" > targetNamespace="http://dinoch.dyndns.org/webservices/books"> > - > <s:element name="GetInfo"> > - > <s:complexType> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="ISBN" type="s:string"/> > </s:sequence> > </s:complexType> > </s:element> > - > <s:element name="GetInfoResponse"> > - > <s:complexType> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="GetInfoResult" > type="s0:bookInfo"/> > </s:sequence> > </s:complexType> > </s:element> > - > <s:complexType name="bookInfo"> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="isbn" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="title" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="author" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="pubdate" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="publisher" > type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="format" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="imgUrl" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="timestamp" > type="s:string"/> > <s:element minOccurs="0" maxOccurs="unbounded" name="vendorprice" > type="s0:bookInfoVendorprice"/> > </s:sequence> > </s:complexType> > - > <s:complexType name="bookInfoVendorprice"> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="name" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="siteUrl" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="pricePrefix" > type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="price" type="s:string"/> > </s:sequence> > </s:complexType> > - > <s:element name="DoKeywordSearch"> > - > <s:complexType> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="keyword" type="s:string"/> > </s:sequence> > </s:complexType> > </s:element> > - > <s:element name="DoKeywordSearchResponse"> > - > <s:complexType> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="DoKeywordSearchResult" > type="s0:ArrayOfBookInfo"/> > </s:sequence> > </s:complexType> > </s:element> > - > <s:complexType name="ArrayOfBookInfo"> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="unbounded" name="bookInfo" > nillable="true" type="s0:bookInfo"/> > </s:sequence> > </s:complexType> > - > <s:element name="DoKeywordSearchEx"> > - > <s:complexType> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="keyword" type="s:string"/> > <s:element minOccurs="0" maxOccurs="1" name="source" type="s:string"/> > </s:sequence> > </s:complexType> > </s:element> > - > <s:element name="DoKeywordSearchExResponse"> > - > <s:complexType> > - > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="DoKeywordSearchExResult" > type="s0:ArrayOfBookInfo"/> > </s:sequence> > </s:complexType> > </s:element> > <s:element name="bookInfo" type="s0:bookInfo"/> > <s:element name="ArrayOfBookInfo" nillable="true" > type="s0:ArrayOfBookInfo"/> > </s:schema> > </types> > - > <message name="GetInfoSoapIn"> > <part name="parameters" element="s0:GetInfo"/> > </message> > - > <message name="GetInfoSoapOut"> > <part name="parameters" element="s0:GetInfoResponse"/> > </message> > - > <message name="DoKeywordSearchSoapIn"> > <part name="parameters" element="s0:DoKeywordSearch"/> > </message> > - > <message name="DoKeywordSearchSoapOut"> > <part name="parameters" element="s0:DoKeywordSearchResponse"/> > </message> > - > <message name="DoKeywordSearchExSoapIn"> > <part name="parameters" element="s0:DoKeywordSearchEx"/> > </message> > - > <message name="DoKeywordSearchExSoapOut"> > <part name="parameters" element="s0:DoKeywordSearchExResponse"/> > </message> > - > <message name="GetInfoHttpGetIn"> > <part name="ISBN" type="s:string"/> > </message> > - > <message name="GetInfoHttpGetOut"> > <part name="Body" element="s0:bookInfo"/> > </message> > - > <message name="DoKeywordSearchHttpGetIn"> > <part name="keyword" type="s:string"/> > </message> > - > <message name="DoKeywordSearchHttpGetOut"> > <part name="Body" element="s0:ArrayOfBookInfo"/> > </message> > - > <message name="DoKeywordSearchExHttpGetIn"> > <part name="keyword" type="s:string"/> > <part name="source" type="s:string"/> > </message> > - > <message name="DoKeywordSearchExHttpGetOut"> > <part name="Body" element="s0:ArrayOfBookInfo"/> > </message> > - > <message name="GetInfoHttpPostIn"> > <part name="ISBN" type="s:string"/> > </message> > - > <message name="GetInfoHttpPostOut"> > <part name="Body" element="s0:bookInfo"/> > </message> > - > <message name="DoKeywordSearchHttpPostIn"> > <part name="keyword" type="s:string"/> > </message> > - > <message name="DoKeywordSearchHttpPostOut"> > <part name="Body" element="s0:ArrayOfBookInfo"/> > </message> > - > <message name="DoKeywordSearchExHttpPostIn"> > <part name="keyword" type="s:string"/> > <part name="source" type="s:string"/> > </message> > - > <message name="DoKeywordSearchExHttpPostOut"> > <part name="Body" element="s0:ArrayOfBookInfo"/> > </message> > - > <portType name="LookyBookServiceSoap"> > - > <operation name="GetInfo"> > - > <documentation> > retrieves book information for a given ISBN. Returns an XML schema > containing title, author, publisher, pubdate and other info. > </documentation> > <input message="s0:GetInfoSoapIn"/> > <output message="s0:GetInfoSoapOut"/> > </operation> > - > <operation name="DoKeywordSearch"> > - > <documentation> > retrieves an array of bookInfo (author, title, isbn) given a keyword. > Vendor price data is not provided in the elements of the array. > </documentation> > <input message="s0:DoKeywordSearchSoapIn"/> > <output message="s0:DoKeywordSearchSoapOut"/> > </operation> > - > <operation name="DoKeywordSearchEx"> > - > <documentation> > retrieves an array of bookInfo (author, title, isbn) given a keyword. > Vendor price data is not provided in the elements of the array. User > may specify the source website (either Bookshop.co.uk or Barnes & > Noble). > </documentation> > <input message="s0:DoKeywordSearchExSoapIn"/> > <output message="s0:DoKeywordSearchExSoapOut"/> > </operation> > </portType> > - > <portType name="LookyBookServiceHttpGet"> > - > <operation name="GetInfo"> > - > <documentation> > retrieves book information for a given ISBN. Returns an XML schema > containing title, author, publisher, pubdate and other info. > </documentation> > <input message="s0:GetInfoHttpGetIn"/> > <output message="s0:GetInfoHttpGetOut"/> > </operation> > - > <operation name="DoKeywordSearch"> > - > <documentation> > retrieves an array of bookInfo (author, title, isbn) given a keyword. > Vendor price data is not provided in the elements of the array. > </documentation> > <input message="s0:DoKeywordSearchHttpGetIn"/> > <output message="s0:DoKeywordSearchHttpGetOut"/> > </operation> > - > <operation name="DoKeywordSearchEx"> > - > <documentation> > retrieves an array of bookInfo (author, title, isbn) given a keyword. > Vendor price data is not provided in the elements of the array. User > may specify the source website (either Bookshop.co.uk or Barnes & > Noble). > </documentation> > <input message="s0:DoKeywordSearchExHttpGetIn"/> > <output message="s0:DoKeywordSearchExHttpGetOut"/> > </operation> > </portType> > - > <portType name="LookyBookServiceHttpPost"> > - > <operation name="GetInfo"> > - > <documentation> > retrieves book information for a given ISBN. Returns an XML schema > containing title, author, publisher, pubdate and other info. > </documentation> > <input message="s0:GetInfoHttpPostIn"/> > <output message="s0:GetInfoHttpPostOut"/> > </operation> > - > <operation name="DoKeywordSearch"> > - > <documentation> > retrieves an array of bookInfo (author, title, isbn) given a keyword. > Vendor price data is not provided in the elements of the array. > </documentation> > <input message="s0:DoKeywordSearchHttpPostIn"/> > <output message="s0:DoKeywordSearchHttpPostOut"/> > </operation> > - > <operation name="DoKeywordSearchEx"> > - > <documentation> > retrieves an array of bookInfo (author, title, isbn) given a keyword. > Vendor price data is not provided in the elements of the array. User > may specify the source website (either Bookshop.co.uk or Barnes & > Noble). > </documentation> > <input message="s0:DoKeywordSearchExHttpPostIn"/> > <output message="s0:DoKeywordSearchExHttpPostOut"/> > </operation> > </portType> > - > <binding name="LookyBookServiceSoap" > type="s0:LookyBookServiceSoap"> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document"/> > - > <operation name="GetInfo"> > <soap:operation > soapAction="http://dinoch.dyndns.org/webservices/books/GetInfo" > style="document"/> > - > <input> > <soap:body use="literal"/> > </input> > - > <output> > <soap:body use="literal"/> > </output> > </operation> > - > <operation name="DoKeywordSearch"> > <soap:operation > soapAction="http://dinoch.dyndns.org/webservices/books/DoKeywordSearch" > style="document"/> > - > <input> > <soap:body use="literal"/> > </input> > - > <output> > <soap:body use="literal"/> > </output> > </operation> > - > <operation name="DoKeywordSearchEx"> > <soap:operation > soapAction="http://dinoch.dyndns.org/webservices/books/DoKeywordSearchEx > " style="document"/> > - > <input> > <soap:body use="literal"/> > </input> > - > <output> > <soap:body use="literal"/> > </output> > </operation> > </binding> > - > <binding name="LookyBookServiceHttpGet" > type="s0:LookyBookServiceHttpGet"> > <http:binding verb="GET"/> > - > <operation name="GetInfo"> > <http:operation location="/GetInfo"/> > - > <input> > <http:urlEncoded/> > </input> > - > <output> > <mime:mimeXml part="Body"/> > </output> > </operation> > - > <operation name="DoKeywordSearch"> > <http:operation location="/DoKeywordSearch"/> > - > <input> > <http:urlEncoded/> > </input> > - > <output> > <mime:mimeXml part="Body"/> > </output> > </operation> > - > <operation name="DoKeywordSearchEx"> > <http:operation location="/DoKeywordSearchEx"/> > - > <input> > <http:urlEncoded/> > </input> > - > <output> > <mime:mimeXml part="Body"/> > </output> > </operation> > </binding> > - > <binding name="LookyBookServiceHttpPost" > type="s0:LookyBookServiceHttpPost"> > <http:binding verb="POST"/> > - > <operation name="GetInfo"> > <http:operation location="/GetInfo"/> > - > <input> > <mime:content type="application/x-www-form-urlencoded"/> > </input> > - > <output> > <mime:mimeXml part="Body"/> > </output> > </operation> > - > <operation name="DoKeywordSearch"> > <http:operation location="/DoKeywordSearch"/> > - > <input> > <mime:content type="application/x-www-form-urlencoded"/> > </input> > - > <output> > <mime:mimeXml part="Body"/> > </output> > </operation> > - > <operation name="DoKeywordSearchEx"> > <http:operation location="/DoKeywordSearchEx"/> > - > <input> > <mime:content type="application/x-www-form-urlencoded"/> > </input> > - > <output> > <mime:mimeXml part="Body"/> > </output> > </operation> > </binding> > - > <service name="LookyBookService"> > - > <port name="LookyBookServiceSoap" > binding="s0:LookyBookServiceSoap"> > <soap:address location="http://www.winisp.net/cheeso/books/books.asmx"/> > </port> > - > <port name="LookyBookServiceHttpGet" > binding="s0:LookyBookServiceHttpGet"> > <http:address location="http://www.winisp.net/cheeso/books/books.asmx"/> > </port> > - > <port name="LookyBookServiceHttpPost" > binding="s0:LookyBookServiceHttpPost"> > <http:address location="http://www.winisp.net/cheeso/books/books.asmx"/> > </port> > </service> > </definitions> > > -----Original Message----- > From: Paul Callahan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 24, 2004 11:17 AM > To: [EMAIL PROTECTED] > Subject: Re: Axis with .Net WebService > > does your wsdl specify a default namespace? > > -pc > > On Tue, 24 Aug 2004 10:51:47 -0400, Uday Kamath <[EMAIL PROTECTED]> > wrote: > > > > Hi > > This may have been repeated many times on the list, but I couldn't > > search for this in the archives. If anyone has clue please respond > > > > 1. I use Axis 1.1 as a client to all webservices. > > 2. For many .Net WebService e.g > > "http://dinoch.dyndns.org/webservices/books", the SOAP Body Request > > generated from SOAPBodyElement.toString() looks like > > <soapenv:Body> > > <ns1:DoKeywordSearch > > xmlns:ns1="http://dinoch.dyndns.org/webservices/books"> > > <keyword xsi:type="string">archer</keyword> > > </ns1:DoKeywordSearch> > > </soapenv:Body> > > 3. The soap response from the web service returns empty. > > 4. If I manually make a request without prefixed name space as shown > > below it works > > <soap:Body> > > <DoKeywordSearch > xmlns="http://dinoch.dyndns.org/webservices/books"> > > <keyword>string</keyword> > > </DoKeywordSearch> > > </soap:Body> > > 5. Is there a way to solve this? > > > > Thanks > > > > > >
