Alan,
What is the style and use of this WSDL? It appears to be invalid as the
parts reference both types and elements. If you are using
rpc/literal, parts should reference types, if using doc/lit there should
only be one part and it should reference an element.
alan sparago wrote:
> If I use the following in a WSDL file and then run wscompile to
> generates the service endpoint, the generated interface and
> implementation classes do NOT contain the parameter ‘middleName’ in
> any of the method signatures. This is due to nillable=”true” for that
> parameter in the WSDL file. If I remove nillable=”true” from the WSDL
> file, it will create the correct method signatures with ‘middleName’
> as one of the parameters.
>
> Note; I am not using a complexType.
>
> …
>
> <definitions
>
> targetNamespace=" http://www.xxxxx.com/xxxx/xxxx "
>
> xmlns="http://schemas.xmlsoap.org/wsdl/"
>
> xmlns:as=" http://www.xxxxx.com/xxxx/xxxx "
>
> xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/"
>
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <types>
>
> <xsd:schema elementFormDefault="qualified"
> targetNamespace="http://www.xxxxx.com/xxxx/xxxx">
>
> <xsd:element name="nullString" nillable="true" type="xsd:string" />
>
> </xsd:schema>
>
> </types>
>
> <message name="Process">
>
> <part name="firstName" type="xsd:string"/>
>
> <part name="lastName" type="xsd:string"/>
>
> <part name="middleName" element="as:nullString"/>
>
> </message>
>
> …
>
> Is this a correct way to create a WSDL file? Is there an issue with
> wscompile? Or am I doing something else wrong?
>
> My wscompile command looks like the following (it runs sucessfully
> with no errors generated);
>
> wscompile -f:wsi -import -keep –verbose -mapping config/mapping.xml -d
> classes -nd config -model config/model.gz config.xml
>
> the method signature from the generated java interface looks like the
> following (Note the missing parameter ‘middleName’);
>
> public interface PaymentGateway extends java.rmi.Remote {
>
> public void process(java.lang.String firstName, java.lang.String
> lastName) throws java.rmi.RemoteException;
>
> }
>
> Running JWSDP 1.4 on windows XP.
>
> Thanks for any help.
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Kohlert
Sun Microsystems, Inc.
doug.kohlert_at_sun.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net