Micheal,
 
The wsdl seems fine.  I looked at the generated code and it "appears" fine...
 
I see in the setTerminationTime(...) method that the opaeration name being used is _call.setOperation(_operations[9]); whic is SetTerminationTime
 
The call is being invoked like this:
 
_call.invoke(new java.lang.Object[] {requestedTerminationTime});
 
requestedTerminationTime is simply a variable of type Calendar....
 
So when this method is invoked "it seems" as though it would send on the wire "<SetTerminationTime>" and use the Calendar instance for the time...
 
I would suggest using TCPMon to see what the message looks like on the wire to see if in fact the request looks correct...
 
You could also include any stacktrace you may be getting from Apollo....
 
We can attempt to figure this out from there...I know Apache Addressing simply extend Axis' Wsdl2Java, so if there is a bug, its probably there,...But right now, at least from eyeballing it, the code seems ok...
 
-Sal


From: Michael Marks [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 08, 2005 1:13 PM
To: [email protected]
Subject: Generation of Client-Stub for SetTerminationTime fails

Hi everybody,

 

I’m trying to create a Client Application for my WSRFService.

At the moment I have a problem by creating the correct client stubs for the operation “SetTerminationTime” and I can’t find the mistake(s).

 

I use the apache addressing WSDL2Java-Generator to create the client-stubs.

The problem is, that the client stub for the “SetTerminationTime” operation does not take the “SetTerminationTime”-Element as InputParameter, but the Subelement “RequestedTerminationTime”.

 

This leads to an error on the serverside, because there doesn’t exist a method-mapping for “RequestedTerminationTime” but for “SetTerminationTime”.

 

I think, there is a mistake in my service description, but I can’t find it. Any ideas?

 

The signature of the generated stub-method “SetTerminationTime” looks like this:

 

 

public void setTerminationTime(java.util.Calendar requestedTerminationTime, javax.xml.rpc.holders.CalendarHolder newTerminationTime, javax.xml.rpc.holders.CalendarHolder currentTime)

 

The portType looks like this:

 

<wsdl:operation name="SetTerminationTime">

     <wsdl:input name="SetTerminationTimeRequest" message="wsrf-rlw:SetTerminationTimeRequest"/>

     <wsdl:output name="SetTerminationTimeResponse" message="wsrf-rlw:SetTerminationTimeResponse"/>

     <wsdl:fault message="wsrf-rlw:UnableToSetTerminationTimeFault" name="UnableToSetTerminationTimeFault"/>

     <wsdl:fault message="wsrf-rlw:ResourceUnknownFault" name="ResourceUnknownFault"/>

     <wsdl:fault message="wsrf-rlw:TerminationTimeChangeRejectedFault"                 

                  name="TerminationTimeChangeRejectedFault"/>

</wsdl:operation>

 

 

and the binding looks like this:

 

<wsdl:operation name="SetTerminationTime">

      <soap:operation style="document"/>

      <wsdl:input name="SetTerminationTimeRequest">

            <soap:body use="literal"/>

      </wsdl:input>

      <wsdl:output name="SetTerminationTimeResponse">

            <soap:body use="literal"/>

      </wsdl:output>

      <wsdl:fault name="UnableToSetTerminationTimeFault">

            <soap:fault name="UnableToSetTerminationTimeFault" use="literal"/>

      </wsdl:fault>

      <wsdl:fault name="ResourceUnknownFault">

            <soap:fault name="ResourceUnknownFault" use="literal"/>

      </wsdl:fault>

      <wsdl:fault name="TerminationTimeChangeRejectedFault">

            <soap:fault name="TerminationTimeChangeRejectedFault" use="literal"/>

      </wsdl:fault>

</wsdl:operation>

 

I have attached the whole wsdl-description and generated Stub-Impl for more information.

 

Thanks in advance for your help!

 

Michael

 

 

 

 

Reply via email to