users@jax-rpc.java.net

Re: empty element type w/.NET & java

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Tue, 14 Sep 2004 08:32:26 -0700

Alex,
Can you include the SOAP message that is causing the problem?

Alex wrote:

>hi folks. i've been trolling google the past few days and i've found one
>person who's had the same problem, but haven't found a solution.
>
>http://www.error-bank.com/microsoft.public.dotnet.framework.webservices/4289_Thread.aspx
>
>I'm not using axis...Any help would be greatly appreciated.
>
>[ERROR] Save Facility Type: java.rmi.RemoteException: Runtime exception;
>nested exception is: unexpected element type: expected=, actual=FacilityType
>
>The wsdl i'm pulling from has been generated with .NET and it's an .asmx
>
>I run wscompile against the target, tried many many different options and
>get the message above. Everything that needs to happen on the .NET side
>does happen...it throws the exception once the return method is called on
>the webservice end...
>
>wscompile:
>
>${unix.jwsdp.home}/jaxrpc/bin/${unix.jwsdp.compile.command}
>-g -gen:client -Xserializable -f:explicitcontext -f:searchschema
>-f:serializeinterfaces -d ${source.dir} -nd ${webinf.dir} -keep
>-classpath ${build.classes} ${client.static.config.file}
>
>the wsdl (trimmed down):
>
><?xml version="1.0" encoding="utf-8"?>
><definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
>xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>xmlns:s="http://www.w3.org/2001/XMLSchema"
>xmlns:s0="http://feh.net.uk/webservices/"
>xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
>xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
>targetNamespace="http://feh.net.uk/webservices/"
>xmlns="http://schemas.xmlsoap.org/wsdl/">
> <types>
>
>
><s:schema elementFormDefault="qualified" targetNamespace="http://feh.net.uk/webservices/">
> <s:element name="Save">
> <s:complexType>
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="coreType" type="s0:CoreType" />
> </s:sequence>
> </s:complexType>
> </s:element>
> <s:complexType name="CoreType" abstract="true">
> <s:sequence>
> <s:element minOccurs="1" maxOccurs="1" name="UpdateDate" type="s:dateTime" />
> <s:element minOccurs="1" maxOccurs="1" name="ExistsInDb" type="s:boolean" />
> </s:sequence>
> </s:complexType>
> </s:schema>
> </types>
> <message name="SaveSoapIn">
> <part name="parameters" element="s0:Save" />
> </message>
> <message name="SaveSoapOut">
> <part name="parameters" element="s0:SaveResponse" />
> </message>
> <message name="SaveContextInformation">
> <part name="ContextInformation" element="s0:ContextInformation" />
> </message>
>
> <portType name="WebServiceSoap">
> <operation name="Save">
> <input message="s0:SaveSoapIn" />
> <output message="s0:SaveSoapOut" />
> </operation>
> </portType>
>
> <binding name="WebServiceSoap" type="s0:ConfigurationManagementWebServiceSoap">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
>
> <operation name="Load">
> <soap:operation soapAction="http://star.net.uk/webservices/Load" style="document" />
> <input>
> <soap:body use="literal" />
> <soap:header message="s0:LoadContextInformation" part="ContextInformation" use="literal" />
> </input>
> <output>
> <soap:body use="literal" />
> </output>
>
> </operation>
> <operation name="Save">
> <soap:operation soapAction="http://feh.net.uk/webservices/Save" style="document" />
> <input>
> <soap:body use="literal" />
> <soap:header message="s0:SaveContextInformation" part="ContextInformation" use="literal" />
> </input>
> <output>
> <soap:body use="literal" />
>
> </output>
> </operation>
> </binding>
> <service name="ConfigurationManagementWebService">
> <documentation>This web service provides all the methods for webservices usage</documentation>
> <port name="WebServiceSoap" binding="s0:ConfigurationManagementWebServiceSoap">
> <soap:address location="http://10.10.10.10/web.services/Tesat.asmx" />
> </port>
> </service>
></definitions>
>
>
>---------------------------------------------------------------------
>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
>
>
>
>

-- 
-------------------------------
Doug Kohlert	
Sun MicroSystems, Inc.
---------------------------------------------------------------------
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