Hello,
In my SEI, I have a function like:
public Member findBySSN(java.lang.String SSN);
In the WSDL, I defined the related element and operation so on as:
....
<simpleType name="socialSecurityNumber">
<restriction base="xsd:string">
<pattern value="\d{3}\d{2}\d{4}"/>
</restriction>
</simpleType>
<element name="findBySSN">
<complexType>
<sequence>
<element name="SSN" nillable="true" type="intf:socialSecurityNumber"/>
</sequence>
</complexType>
</element>
<element name="findBySSNResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded" name="findBySSNReturn" type="tns2:Member"/>
</sequence>
</complexType>
</element>
<wsdl:message name="findBySSNRequest">
<wsdl
art element="intf:findBySSN" name="parameters"/>
</wsdl:message>
<wsdl:message name="findBySSNResponse">
<wsdl
art element="intf:findBySSNResponse" name="parameters"/>
</wsdl:message>
<wsdl
peration name="findBySSN">
<wsdl:input message="intf:findBySSNRequest" name="findBySSNRequest"/>
<wsdl
utput message="intf:findBySSNResponse" name="findBySSNResponse"/>
</wsdl
peration>
....
The problem is when I create the service client, the client side stub automatic generated a new java type SocialSecurityNumber.java, so when the client code call to the SEI function findBySSN(String ssn), it complains that the type defined is not applicable with the argument type string because the client . soapbindingstub.java generated for the soapbinding on the SEI findBySSN method is actually as this:
public Member findBySSN(SocialSecurityNumber SSN) throws java.rmi.RemoteException{ ....}.
What should I do with this error? Basically, how do I deal with the WSDL complex type to java binding?
Anyone can help me out? Thanks in advance.
-Helen