axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Keese <bi...@tech.beacon-it.co.jp>
Subject Re: Interoprability issue of Axis with .Net
Date Mon, 31 Jan 2005 07:07:15 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-2022-JP"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hmm, I'm not sure.&nbsp; Maybe it's getting confused by the minOccurs="0" on
the "po" input parameter to the AddEntry() function?&nbsp; You could try
taking that out, or using nillable="true" rather than minOccurs="0".<br>
<br>
Bill<br>
<br>
Dhananjayan_K wrote:
<blockquote cite="mid6F1856AEE2458945B70136FD3DC45DFD0AAE4A@BSDNT001"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2800.1264" name="GENERATOR">
  <div><span class="406455906-31012005"><font color="#0000ff" size="2">Hi
Bill,</font></span></div>
  <div><span class="406455906-31012005"><font color="#0000ff" size="2">Thanks
for the response..I changed the .wsdl file as mentioned by your
previous mail related to void return type I took the </font></span></div>
  <div><span class="406455906-31012005"><font color="#0000ff" size="2">approach
3</font></span></div>
  <div><span class="406455906-31012005"></span>&nbsp;</div>
  <div><span class="406455906-31012005"><font color="#0000ff" size="2">3)
Void type<br>
&lt;complexType name="Void"/&gt;<br>
&lt;element name="UpdateDocumentResponse" type="tns:Void"/&gt;<br>
&lt;wsdl:message name="UpdateDocumentResponse"&gt;<br>
&lt;wsdl:part name="parameters"
element="tns:UpdateDocumentResponse"/&gt;<br>
&lt;/wsdl:message&gt;</font></span></div>
  <div><span class="406455906-31012005"></span>&nbsp;</div>
  <div><span class="406455906-31012005"><font color="#0000ff" size="2">still
iam getting the same output when i try wsdl2java...</font></span></div>
  <div><span class="406455906-31012005"></span>&nbsp;</div>
  <div><span class="406455906-31012005"><font color="#0000ff" size="2">&lt;?xml
version="1.0" encoding="utf-8"?&gt;<br>
&lt;definitions <br>
targetNamespace="urn:SimpleService"<br>
xmlns:http="<a href="http://schemas.xmlsoap.org/wsdl/http/">http://schemas.xmlsoap.org/wsdl/http/</a>"
  <br>
xmlns:soap="<a href="http://schemas.xmlsoap.org/wsdl/soap/">http://schemas.xmlsoap.org/wsdl/soap/</a>"
  <br>
xmlns:s="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
  <br>
xmlns:soapenc="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>"
  <br>
xmlns:tm="<a href="http://microsoft.com/wsdl/mime/textMatching/">http://microsoft.com/wsdl/mime/textMatching/</a>"
  <br>
xmlns:mime="<a href="http://schemas.xmlsoap.org/wsdl/mime/">http://schemas.xmlsoap.org/wsdl/mime/</a>"
  <br>
xmlns="<a href="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a>"<br>
xmlns:s0="urn:SimpleService"&gt;<br>
&nbsp; &lt;types&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;s:schema elementFormDefault="qualified"
targetNamespace="urn:SimpleService" &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&lt;s:element name="AddEntry"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;s:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;s:sequence&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;s:element minOccurs="0" maxOccurs="1" name="po"
type="s0:ServiceDetails" /&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/s:sequence&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/s:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/s:element&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp; &nbsp;&nbsp;&lt;s:complexType name="ServiceDetails"&gt;<br>
&nbsp;&nbsp;&lt;s:sequence&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;s:element minOccurs="0" maxOccurs="1" name="ItemName"
type="s:string" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;s:element minOccurs="1" maxOccurs="1" name="Quantity"
type="s:int" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;s:element minOccurs="1" maxOccurs="1" name="price"
type="s:float" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;s:element minOccurs="0" maxOccurs="1" name="currency"
type="s:string" /&gt;<br>
&nbsp;&nbsp;&lt;/s:sequence&gt;<br>
&nbsp;&nbsp; &lt;/s:complexType&gt;&nbsp; </font></span></div>
  <div>&nbsp;</div>
  <div><span class="406455906-31012005"><font color="#0000ff" size="2">&nbsp;&lt;s:complexType
name="Void"/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;s:element name="AddEntryResponse"
type="s0:Void"/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;s:element name="getOrder"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;s:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;s:sequence&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;s:element minOccurs="0" maxOccurs="1" name="str2"
type="s:string" /&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/s:sequence&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/s:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/s:element&gt;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;s:element name="getOrderResponse"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;s:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;s:sequence&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;s:element minOccurs="0" maxOccurs="1"
name="getOrderResult" type="s:int" /&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/s:sequence&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/s:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/s:element&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp; &lt;/s:schema&gt;<br>
&nbsp; &lt;/types&gt;<br>
&nbsp; &lt;message name="empty"/&gt;<br>
&nbsp;&nbsp; &lt;message name="AddEntrySoapIn"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;part name="parameters" element="s0:AddEntry" /&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp; &lt;/message&gt;<br>
&nbsp; &lt;message name="AddEntrySoapOut"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;part name="parameters" element="s0:AddEntryResponse"
/&gt;<br>
&nbsp; &lt;/message&gt;<br>
&nbsp; &lt;message name="getOrderSoapIn"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;part name="parameters" element="s0:getOrder" /&gt;<br>
&nbsp; &lt;/message&gt;<br>
&nbsp; &lt;message name="getOrderSoapOut"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;part name="parameters" element="s0:getOrderResponse"
/&gt;<br>
&nbsp; &lt;/message&gt;&nbsp;&nbsp;&nbsp; <br>
&nbsp; &lt;portType name="SimpleServiceRegistry"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;operation name="addEntry"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input message="s0:AddEntrySoapIn"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;output message="s0:empty"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/operation&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;operation name="getOrder"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input message="s0:getOrderSoapIn"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;output message="s0:getOrderSoapOut"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/operation&gt;<br>
&nbsp; &lt;/portType&gt;&nbsp; <br>
&nbsp; &lt;!-- binding declns --&gt;<br>
&nbsp; &lt;binding name="SimpleServiceSOAPBinding"
type="s0:SimpleServiceRegistry"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;soap:binding transport="<a
 href="http://schemas.xmlsoap.org/soap/http">http://schemas.xmlsoap.org/soap/http</a>"
style="document"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;operation name="addEntry"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:operation soapAction="" style="document"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:body use="literal"
/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/input&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;output&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:body use="literal"
/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/output&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/operation&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;operation name="getOrder"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:operation soapAction="" style="document"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:body use="literal"
/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/input&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;output&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:body use="literal"
/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/output&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/operation&gt;<br>
&nbsp; &lt;/binding&gt;<br>
&nbsp; &lt;!-- service decln --&gt;<br>
&nbsp; &lt;service name="SService"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;port name="SSPort" binding="s0:SimpleServiceSOAPBinding"
&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:address location="<a
 href="http://localhost:8080/axis/services/SSPort%22/">http://localhost:8080/axis/services/SSPort"/</a>&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/port&gt;<br>
&nbsp; &lt;/service&gt;<br>
&lt;/definitions&gt;</font></span></div>
  <div><span class="406455906-31012005"></span>&nbsp;</div>
  <div><span class="406455906-31012005"><font color="#0000ff" size="2">thanks...</font></span></div>
  <div><span class="406455906-31012005"></span>&nbsp;</div>
  <div><span class="406455906-31012005"></span>&nbsp;</div>
  <blockquote style="margin-right: 0px;" dir="ltr">
    <div class="OutlookMessageHeader" align="left" dir="ltr"><font
 face="Tahoma" size="2">-----Original Message-----<br>
    <b>From:</b> Bill Keese [<a class="moz-txt-link-freetext" href="mailto:billk@tech.beacon-it.co.jp">mailto:billk@tech.beacon-it.co.jp</a>]<br>
    <b>Sent:</b> Monday, January 31, 2005 12:23 PM<br>
    <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a><br>
    <b>Subject:</b> Re: Interoprability issue of Axis with .Net<br>
    <br>
    </font></div>
You are trying to do wrapped/literal mode, right?&nbsp; Yeah, I think
wsdl2java is producing bad output.&nbsp; I think that wsdl2java is getting
confused by the void return type.&nbsp; Please see my earlier mail on void
return types.<br>
    <br>
Dhananjayan_K wrote:
    <blockquote
 cite="mid6F1856AEE2458945B70136FD3DC45DFD0AAE47@BSDNT001" type="cite">
      <pre wrap="">Hi,
For the follwing .wsdl file the *Impl.java class generated by wsdl2java
seems to be wrong..
Please correct me if iam wrong..

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;definitions 
targetNamespace="urn:SimpleService"
xmlns:http=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/wsdl/http/">"http://schemas.xmlsoap.org/wsdl/http/"</a>

xmlns:soap=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/wsdl/soap/">"http://schemas.xmlsoap.org/wsdl/soap/"</a>

xmlns:s=<a class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a> 
xmlns:soapenc=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/soap/encoding/">"http://schemas.xmlsoap.org/soap/encoding/"</a>

xmlns:tm=<a class="moz-txt-link-rfc2396E"
 href="http://microsoft.com/wsdl/mime/textMatching/">"http://microsoft.com/wsdl/mime/textMatching/"</a>

xmlns:mime=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/wsdl/mime/">"http://schemas.xmlsoap.org/wsdl/mime/"</a>

xmlns=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/wsdl/">"http://schemas.xmlsoap.org/wsdl/"</a>
xmlns:s0="urn:SimpleService"&gt;
  &lt;types&gt;
       &lt;s:schema elementFormDefault="qualified"
targetNamespace="urn:SimpleService" &gt;                
		&lt;s:element name="AddEntry"&gt;
        &lt;s:complexType&gt;
          &lt;s:sequence&gt;
            &lt;s:element minOccurs="0" maxOccurs="1" name="po"
type="s0:ServiceDetails" /&gt;
          &lt;/s:sequence&gt;
        &lt;/s:complexType&gt;
      &lt;/s:element&gt;      
  		&lt;s:complexType name="ServiceDetails"&gt;
		&lt;s:sequence&gt;
		  &lt;s:element minOccurs="0" maxOccurs="1" name="ItemName"
type="s:string" /&gt;
		  &lt;s:element minOccurs="1" maxOccurs="1" name="Quantity"
type="s:int" /&gt;
		  &lt;s:element minOccurs="1" maxOccurs="1" name="price"
type="s:float" /&gt;
		  &lt;s:element minOccurs="0" maxOccurs="1" name="currency"
type="s:string" /&gt;
		&lt;/s:sequence&gt;
	  &lt;/s:complexType&gt;  
          	
      &lt;s:element name="AddEntryResponse"&gt;
        &lt;s:complexType/&gt;                 
      &lt;/s:element&gt;  
      &lt;s:element name="getOrder"&gt;
        &lt;s:complexType&gt;
          &lt;s:sequence&gt;
            &lt;s:element minOccurs="0" maxOccurs="1" name="str2"
type="s:string" /&gt;
          &lt;/s:sequence&gt;
        &lt;/s:complexType&gt;
      &lt;/s:element&gt;     
      &lt;s:element name="getOrderResponse"&gt;
        &lt;s:complexType&gt;
          &lt;s:sequence&gt;
            &lt;s:element minOccurs="0" maxOccurs="1" name="getOrderResult"
type="s:int" /&gt;
          &lt;/s:sequence&gt;
        &lt;/s:complexType&gt;
        &lt;/s:element&gt;          
    &lt;/s:schema&gt;
  &lt;/types&gt;
  &lt;message name="empty"/&gt;
   &lt;message name="AddEntrySoapIn"&gt;
    &lt;part name="parameters" element="s0:AddEntry" /&gt;            
  &lt;/message&gt;
  &lt;message name="AddEntrySoapOut"&gt;
    &lt;part name="parameters" element="s0:AddEntryResponse" /&gt;
  &lt;/message&gt;
  &lt;message name="getOrderSoapIn"&gt;
    &lt;part name="parameters" element="s0:getOrder" /&gt;
  &lt;/message&gt;
  &lt;message name="getOrderSoapOut"&gt;
    &lt;part name="parameters" element="s0:getOrderResponse" /&gt;
  &lt;/message&gt;    
  &lt;portType name="SimpleServiceRegistry"&gt;
    &lt;operation name="addEntry"&gt;
      &lt;input message="s0:AddEntrySoapIn"/&gt;
      &lt;output message="s0:empty"/&gt;
    &lt;/operation&gt;
    &lt;operation name="getOrder"&gt;
      &lt;input message="s0:getOrderSoapIn"/&gt;
      &lt;output message="s0:getOrderSoapOut"/&gt;
    &lt;/operation&gt;
  &lt;/portType&gt;  
  &lt;!-- binding declns --&gt;
  &lt;binding name="SimpleServiceSOAPBinding" type="s0:SimpleServiceRegistry"&gt;
    &lt;soap:binding transport=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/soap/http">"http://schemas.xmlsoap.org/soap/http"</a>
style="document"/&gt;
    &lt;operation name="addEntry"&gt;
      &lt;soap:operation soapAction="" style="document"/&gt;
      &lt;input&gt;
        &lt;soap:body use="literal" /&gt;
      &lt;/input&gt;
      &lt;output&gt;
        &lt;soap:body use="literal" /&gt;
      &lt;/output&gt;
    &lt;/operation&gt;
    &lt;operation name="getOrder"&gt;
      &lt;soap:operation soapAction="" style="document"/&gt;
      &lt;input&gt;
        &lt;soap:body use="literal" /&gt;
      &lt;/input&gt;
      &lt;output&gt;
        &lt;soap:body use="literal" /&gt;
       &lt;/output&gt;
    &lt;/operation&gt;
  &lt;/binding&gt;
  &lt;!-- service decln --&gt;
  &lt;service name="SService"&gt;
    &lt;port name="SSPort" binding="s0:SimpleServiceSOAPBinding" &gt;
      &lt;soap:address location=<a class="moz-txt-link-rfc2396E"
 href="http://localhost:8080/axis/services/SSPort">"http://localhost:8080/axis/services/SSPort"</a>/&gt;
    &lt;/port&gt;
  &lt;/service&gt;
&lt;/definitions&gt;

For addEntry method in the below generated class, I expect the addEntry
method signature like
public void addEntry(SimpleService.ServiceDetails parameters) but it is
generated differently...

The *.impl.java class is as follows 

package SimpleService;

public class SimpleServiceSOAPBindingImpl implements
SimpleService.SimpleServiceRegistry{
    public void addEntry(SimpleService._AddEntry parameters) throws
java.rmi.RemoteException {
    }

    public java.lang.Integer getOrder(java.lang.String getOrderStr2) throws
java.rmi.RemoteException {
        return null;
    }
}

thanks...

-----Original Message-----
From: Bill Keese [<a class="moz-txt-link-freetext"
 href="mailto:billk@tech.beacon-it.co.jp">mailto:billk@tech.beacon-it.co.jp</a>]
Sent: Monday, January 31, 2005 11:34 AM
To: <a class="moz-txt-link-abbreviated"
 href="mailto:axis-user@ws.apache.org">axis-user@ws.apache.org</a>
Subject: Re: Interoprability issue of Axis with .Net


To start with:
1) each message should have only one part
2) the part should point to an element, not to a type
3) (for wrapped/literal) the part name should be "parameters", for both
response and request.

You are violating #1.

Things get more complicated for arrays and complex structures. See also
<a class="moz-txt-link-freetext"
 href="http://searchwebservices.techtarget.com/ateQuestionNResponse/0,289625,sid26_">http://searchwebservices.techtarget.com/ateQuestionNResponse/0,289625,sid26_</a>
cid594054_tax289201,00.html


Dhananjayan_K wrote:

  </pre>
      <blockquote type="cite">
        <pre wrap="">Hi, 

Is there any place where i can get the list of interoperability issues of
.Net client using Axis server...
I am not able to create a client for .Net for the foll simple example.. 
Iam not able to find where I have gone wrong..

wsdl file...
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;definitions 
targetNamespace="urn:SimpleService"
xmlns:http=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/wsdl/http/">"http://schemas.xmlsoap.org/wsdl/http/"</a>

xmlns:soap=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/wsdl/soap/">"http://schemas.xmlsoap.org/wsdl/soap/"</a>

xmlns:s=<a class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a> 
xmlns:soapenc=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/soap/encoding/">"http://schemas.xmlsoap.org/soap/encoding/"</a>

xmlns:tm=<a class="moz-txt-link-rfc2396E"
 href="http://microsoft.com/wsdl/mime/textMatching/">"http://microsoft.com/wsdl/mime/textMatching/"</a>

xmlns:mime=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/wsdl/mime/">"http://schemas.xmlsoap.org/wsdl/mime/"</a>

xmlns=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/wsdl/">"http://schemas.xmlsoap.org/wsdl/"</a>
xmlns:s0="urn:SimpleService"&gt;
 &lt;types&gt;
      &lt;s:schema elementFormDefault="qualified"
targetNamespace="urn:SimpleService" &gt;                
         &lt;s:element minOccurs="0" maxOccurs="1" name="ItemName"
type="s:string" /&gt;
         &lt;s:element minOccurs="1" maxOccurs="1" name="Quantity"
type="s:int" /&gt;
         &lt;s:element minOccurs="1" maxOccurs="1" name="price"
    </pre>
      </blockquote>
      <pre wrap=""><!---->type="s:float"
  </pre>
      <blockquote type="cite">
        <pre wrap="">/&gt;
         &lt;s:element minOccurs="0" maxOccurs="1" name="currency"
type="s:string" /&gt;          
   	&lt;s:element name="AddEntry"&gt;
       &lt;s:complexType&gt;
         &lt;s:sequence&gt;
           &lt;s:element minOccurs="0" maxOccurs="1" name="str1"
type="s:string" /&gt;
           &lt;s:element minOccurs="0" maxOccurs="1" name="po" type="s:int"
    </pre>
      </blockquote>
      <pre wrap=""><!---->/&gt;
  </pre>
      <blockquote type="cite">
        <pre wrap="">         &lt;/s:sequence&gt;
       &lt;/s:complexType&gt;
     &lt;/s:element&gt;    
     &lt;s:element name="AddEntryResponse"&gt;
       &lt;s:complexType&gt;
         &lt;s:sequence&gt;      
           &lt;s:element minOccurs="0" maxOccurs="1" name="getOrderResult"
type="s:int" /&gt;
         &lt;/s:sequence&gt;
       &lt;/s:complexType&gt;            
     &lt;/s:element&gt;  
     &lt;s:element name="getOrder"&gt;
       &lt;s:complexType&gt;
         &lt;s:sequence&gt;
           &lt;s:element minOccurs="0" maxOccurs="1" name="str2"
type="s:string" /&gt;
         &lt;/s:sequence&gt;
       &lt;/s:complexType&gt;
     &lt;/s:element&gt;     
     &lt;s:element name="getOrderResponse"&gt;
       &lt;s:complexType&gt;
         &lt;s:sequence&gt;
           &lt;s:element minOccurs="0" maxOccurs="1" name="getOrderResult"
type="s:int" /&gt;
         &lt;/s:sequence&gt;
       &lt;/s:complexType&gt;
       &lt;/s:element&gt;          
   &lt;/s:schema&gt;
 &lt;/types&gt;
 &lt;message name="empty"/&gt;
  &lt;message name="AddEntrySoapIn"&gt;
   &lt;part name="parameters1" element="s0:ItemName" /&gt;
   &lt;part name="parameters2" element="s0:Quantity" /&gt;
   &lt;part name="parameters3" element="s0:price" /&gt;
   &lt;part name="parameters4" element="s0:currency" /&gt;            
 &lt;/message&gt;
 &lt;message name="AddEntrySoapOut"&gt;
   &lt;part name="resp1" element="s0:AddEntryResponse" /&gt;
 &lt;/message&gt;
 &lt;message name="getOrderSoapIn"&gt;
   &lt;part name="req1" element="s0:getOrder" /&gt;
 &lt;/message&gt;
 &lt;message name="getOrderSoapOut"&gt;
   &lt;part name="resp3" element="s0:getOrderResponse" /&gt;
 &lt;/message&gt;    
 &lt;portType name="SimpleServiceRegistry"&gt;
   &lt;operation name="addEntry"&gt;
     &lt;input message="s0:AddEntrySoapIn"/&gt;
     &lt;output message="s0:empty"/&gt;
   &lt;/operation&gt;
   &lt;operation name="getOrder"&gt;
     &lt;input message="s0:getOrderSoapIn"/&gt;
     &lt;output message="s0:getOrderSoapOut"/&gt;
   &lt;/operation&gt;
 &lt;/portType&gt;  
 &lt;!-- binding declns --&gt;
 &lt;binding name="SimpleServiceSOAPBinding" type="s0:SimpleServiceRegistry"&gt;
   &lt;soap:binding transport=<a class="moz-txt-link-rfc2396E"
 href="http://schemas.xmlsoap.org/soap/http">"http://schemas.xmlsoap.org/soap/http"</a>
style="document"/&gt;
   &lt;operation name="addEntry"&gt;
     &lt;soap:operation soapAction="" style="document"/&gt;
     &lt;input&gt;
       &lt;soap:body use="literal" /&gt;
     &lt;/input&gt;
     &lt;output&gt;
       &lt;soap:body use="literal" /&gt;
     &lt;/output&gt;
   &lt;/operation&gt;
   &lt;operation name="getOrder"&gt;
     &lt;soap:operation soapAction="" style="document"/&gt;
     &lt;input&gt;
       &lt;soap:body use="literal" /&gt;
     &lt;/input&gt;
     &lt;output&gt;
       &lt;soap:body use="literal" /&gt;
      &lt;/output&gt;
   &lt;/operation&gt;
 &lt;/binding&gt;
 &lt;!-- service decln --&gt;
 &lt;service name="SService"&gt;
   &lt;port name="SSPort" binding="s0:SimpleServiceSOAPBinding" &gt;
     &lt;soap:address location=<a class="moz-txt-link-rfc2396E"
 href="http://localhost:8080/axis/services/SSPort">"http://localhost:8080/axis/services/SSPort"</a>/&gt;
   &lt;/port&gt;
 &lt;/service&gt;
&lt;/definitions&gt;

deploy.wsdd

&lt;deployment
   xmlns=<a class="moz-txt-link-rfc2396E"
 href="http://xml.apache.org/axis/wsdd/">"http://xml.apache.org/axis/wsdd/"</a>
   xmlns:java=<a class="moz-txt-link-rfc2396E"
 href="http://xml.apache.org/axis/wsdd/providers/java">"http://xml.apache.org/axis/wsdd/providers/java"</a>&gt;

 &lt;!-- Services from SService WSDL service --&gt;

 &lt;service name="SSPort" provider=<a class="moz-txt-link-rfc2396E"
 href="java:RPC">"java:RPC"</a> style="wrapped" use="literal"&gt;
     &lt;parameter name="wsdlTargetNamespace" value="urn:SimpleService"/&gt;
     &lt;parameter name="wsdlServiceElement" value="SService"/&gt;
     &lt;parameter name="wsdlServicePort" value="SSPort"/&gt;
     &lt;parameter name="className"
value="SimpleService.SimpleServiceSOAPBindingSkeleton"/&gt;
     &lt;parameter name="wsdlPortType" value="SimpleServiceRegistry"/&gt;
     &lt;parameter name="allowedMethods" value="*"/&gt;

 &lt;/service&gt;
&lt;/deployment&gt;

thanks...


 

    </pre>
      </blockquote>
      <pre wrap=""><!---->

  </pre>
    </blockquote>
  </blockquote>
</blockquote>
</body>
</html>

Mime
View raw message