Hallo,
I'm still trying to figure out how to get the webservice running, which needs to be updated from Java 1.3 / WO 5.2 to Java 1.4 WO 5.3, botrh on mac os X.

I found the entry in the wiki and tried it, but either I do not understand it properly or this is not my issue.

That is the error message:
com.webobjects.foundation.NSForwardException for javax.xml.rpc.ServiceException: Error processing WSDL document: java.io.IOException: Type {http://schemas.xmlsoap.org/soap/encoding/}Struct is referenced but not defined.


This is what I did (from the wiki as I understand it)

QName x = new QName("http://www.tt-cms.com";, "Kurzinfos");

Kurzinfos is the class where the Functions reside in, which are called by the webService.

WOWebServiceRegistrar.registerFactoriesForClassWithQName(new BeanSerializerFactory(Kurzinfos.class, x), new BeanDeserializerFactory(Kurzinfos.class, x), Kurzinfos.class, x);

I suppose that is the class I need to register i.e. the class the functions are in, which are called by the webService. As there is no package or framework involved, the class being inside of a WebObjects Application without any extras. the simple class name would be enough, right? If I needed a path, I wouldn't know what to use:-(.

Perhaps someone could please look at what I did? That's the wsdl:

-
<wsdl:definitions targetNamespace="http://www.tt-cms.com/cgi-bin/WebObjects/mwsprov.woa/ 1/ws/Kurzinfos">
-
        <wsdl:types>
-
        <schema targetNamespace="http://eocontrol.webobjects.com";>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
-
        <complexType abstract="true" name="EOObjectStore">
<sequence/>
</complexType>
-
        <complexType name="EOSharedEditingContext">
-
        <complexContent>
-
        <extension base="tns3:EOEditingContext">
<sequence/>
</extension>
</complexContent>
</complexType>
-
        <complexType name="EOEditingContext">
-
        <complexContent>
-
        <extension base="tns3:EOObjectStore">
-
        <sequence>
<element name="delegate" nillable="true" type="xsd:anyType"/>
<element name="fetchTimestamp" type="xsd:long"/>
<element name="invalidatesObjectsWhenFinalized" type="xsd:boolean"/>
<element name="locksObjectsBeforeFirstModification" type="xsd:boolean"/>
<element name="messageHandler" nillable="true" type="xsd:anyType"/>
<element name="propagatesDeletesAtEndOfEvent" type="xsd:boolean"/>
<element name="retainsRegisteredObjects" type="xsd:boolean"/>
<element name="sharedEditingContext" nillable="true" type="tns3:EOSharedEditingContext"/>
<element name="stopsValidationAfterFirstError" type="xsd:boolean"/>
<element name="undoManager" nillable="true" type="tns4:NSUndoManager"/>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
-
        <schema targetNamespace="http://foundation.webobjects.com";>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
-
        <complexType name="NSUndoManager">
-
        <sequence>
<element name="groupsByEvent" type="xsd:boolean"/>
<element name="levelsOfUndo" type="xsd:int"/>
<element name="redoing" type="xsd:boolean"/>
<element name="undoRegistrationEnabled" type="xsd:boolean"/>
<element name="undoing" type="xsd:boolean"/>
</sequence>
</complexType>
</schema>
-
        <schema targetNamespace="http://www.tt-cms.com";>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
-
        <complexType name="Kurzinfos">
-
        <sequence>
<element name="ec" nillable="true" type="tns3:EOEditingContext"/>
<element name="ec1" nillable="true" type="tns3:EOEditingContext"/>
</sequence>
</complexType>
</schema>
-
        <schema targetNamespace="http://xml.apache.org/xml-soap";>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
-
        <complexType name="Map">
-
        <sequence>
-
        <element maxOccurs="unbounded" minOccurs="0" name="item">
-
        <complexType>
-
        <all>
<element name="key" type="xsd:anyType"/>
<element name="value" type="xsd:anyType"/>
</all>
</complexType>
</element>
</sequence>
</complexType>
</schema>
</wsdl:types>
-
        <wsdl:message name="ausgabeStatRequest">
<wsdl:part name="uebergabe" type="xsd:int"/>
<wsdl:part name="nutzer" type="xsd:int"/>
</wsdl:message>
-
        <wsdl:message name="ausgabeResponse">
<wsdl:part name="ausgabeReturn" type="soapenc:Struct"/>
</wsdl:message>
-
        <wsdl:message name="ausgabeStatResponse">
<wsdl:part name="ausgabeStatReturn" type="soapenc:Struct"/>
</wsdl:message>
-
        <wsdl:message name="ausgabeUnterseiteResponse">
<wsdl:part name="ausgabeUnterseiteReturn" type="soapenc:Struct"/>
</wsdl:message>
-
        <wsdl:message name="ausgabeSpezialResponse">
<wsdl:part name="ausgabeSpezialReturn" type="soapenc:Struct"/>
</wsdl:message>
-
        <wsdl:message name="ausgabeRequest">
<wsdl:part name="uebergabe" type="xsd:int"/>
</wsdl:message>
-
        <wsdl:message name="ausgabeUnterseiteRequest">
<wsdl:part name="uebergabe" type="xsd:int"/>
</wsdl:message>
-
        <wsdl:message name="ausgabeSpezialRequest">
<wsdl:part name="uebergabe" type="xsd:int"/>
<wsdl:part name="stelle" type="xsd:int"/>
</wsdl:message>
-
        <wsdl:portType name="Kurzinfos">
-
        <wsdl:operation name="ausgabe" parameterOrder="uebergabe">
<wsdl:input message="impl:ausgabeRequest" name="ausgabeRequest"/>
<wsdl:output message="impl:ausgabeResponse" name="ausgabeResponse"/>
</wsdl:operation>
-
        <wsdl:operation name="ausgabeStat" parameterOrder="uebergabe nutzer">
<wsdl:input message="impl:ausgabeStatRequest" name="ausgabeStatRequest"/> <wsdl:output message="impl:ausgabeStatResponse" name="ausgabeStatResponse"/>
</wsdl:operation>
-
        <wsdl:operation name="ausgabeUnterseite" parameterOrder="uebergabe">
<wsdl:input message="impl:ausgabeUnterseiteRequest" name="ausgabeUnterseiteRequest"/> <wsdl:output message="impl:ausgabeUnterseiteResponse" name="ausgabeUnterseiteResponse"/>
</wsdl:operation>
-
<wsdl:operation name="ausgabeSpezial" parameterOrder="uebergabe stelle"> <wsdl:input message="impl:ausgabeSpezialRequest" name="ausgabeSpezialRequest"/> <wsdl:output message="impl:ausgabeSpezialResponse" name="ausgabeSpezialResponse"/>
</wsdl:operation>
</wsdl:portType>
-
        <wsdl:binding name="KurzinfosSoapBinding" type="impl:Kurzinfos">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
-
        <wsdl:operation name="ausgabe">
<wsdlsoap:operation soapAction=""/>
-
        <wsdl:input name="ausgabeRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://DefaultNamespace"; use="encoded"/>
</wsdl:input>
-
        <wsdl:output name="ausgabeResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://www.tt-cms.com/cgi-bin/WebObjects/mwsprov.woa/1/ws/ Kurzinfos" use="encoded"/>
</wsdl:output>
</wsdl:operation>
-
        <wsdl:operation name="ausgabeStat">
<wsdlsoap:operation soapAction=""/>
-
        <wsdl:input name="ausgabeStatRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://DefaultNamespace"; use="encoded"/>
</wsdl:input>
-
        <wsdl:output name="ausgabeStatResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://www.tt-cms.com/cgi-bin/WebObjects/mwsprov.woa/1/ws/ Kurzinfos" use="encoded"/>
</wsdl:output>
</wsdl:operation>
-
        <wsdl:operation name="ausgabeUnterseite">
<wsdlsoap:operation soapAction=""/>
-
        <wsdl:input name="ausgabeUnterseiteRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://DefaultNamespace"; use="encoded"/>
</wsdl:input>
-
        <wsdl:output name="ausgabeUnterseiteResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://www.tt-cms.com/cgi-bin/WebObjects/mwsprov.woa/1/ws/ Kurzinfos" use="encoded"/>
</wsdl:output>
</wsdl:operation>
-
        <wsdl:operation name="ausgabeSpezial">
<wsdlsoap:operation soapAction=""/>
-
        <wsdl:input name="ausgabeSpezialRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://DefaultNamespace"; use="encoded"/>
</wsdl:input>
-
        <wsdl:output name="ausgabeSpezialResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://www.tt-cms.com/cgi-bin/WebObjects/mwsprov.woa/1/ws/ Kurzinfos" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
-
        <wsdl:service name="Kurzinfos">
-
        <wsdl:port binding="impl:KurzinfosSoapBinding" name="Kurzinfos">
<wsdlsoap:address location="http://www.tt-cms.com/cgi-bin/WebObjects/mwsprov.woa/1/ws/ Kurzinfos"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Regards,,
Ute


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to