Hi Olivier,

We think we know what's going wrong here but need to see your WSDL to
confirm. Could you post you complete WSDL (if its too big for posting to
the list then email it to me directly).

Thanks,

       ...ant

Anthony Elder
[EMAIL PROTECTED]
Web Services Development
IBM UK Laboratories,  Hursley Park
(+44) 01962 818320, x248320, MP208.


"Brand, Olivier" <[EMAIL PROTECTED]> on 13/03/2003 14:23:21

Please respond to [EMAIL PROTECTED]

To:    <[EMAIL PROTECTED]>
cc:
Subject:    Error when calling a method on a stub !!



Could someone explains me why I get this type of message when calling a
method on a returned stub.
The message seems clear but cannot see where is the error....

Extract of the messages for getPrice:

<message name="getPriceResponse">
  <part name="chargingServiceResult" type="result:resultType"/>
 </message>
 <message name="getPriceRequest">
  <part name="user" type="user:userType"/>
  <part name="item" type="item:itemType"/>
 </message>

Extract of the port type:

<portType name="ChargingServicePortType">
  <operation name="getPrice">
   <input name="getPriceRequest" message="tns:getPriceRequest"/>
   <output name="getPriceResponse" message="tns:getPriceResponse"/>
   <fault name="chargingServiceException" message
   ="tns:chargingServiceException"/>
  </operation>

Extract of the Java Binding:

<binding name="JavaChargingService" type="tns:ChargingServicePortType">
  <java:binding/>
  <format:typeMapping encoding="Java" style="Java">
   <format:typeMap typeName="user:userType" formatType
   ="com.vodafone.global.charging.user.UserType"/>
   <format:typeMap typeName="item:itemType" formatType
   ="com.vodafone.global.charging.item.ItemType"/>
   <format:typeMap typeName="result:resultType" formatType
   ="com.vodafone.global.charging.result.ResultType"/>
  </format:typeMapping>

  <operation name="getPrice">
   <java:operation
           methodName="getPrice"
           parameterOrder="user item"
           methodType="instance"
           returnPart="chargingServiceResult" />
   <input name="getPriceRequest"/>
   <output name="getPriceResponse"/>
   <fault name="chargingServiceException"/>
  </operation>

Extract of the service:

<port name="JavaChargingService" binding="tns:JavaChargingService">
  <java:address className
  ="com.vodafone.global.charging.SOAPChargingServiceImpl"/>
</port>

ERROR:

org.apache.wsif.WSIFException: Method getPrice(class
 com.vodafone.global.charging.user.UserType, class
 com.vodafone.global.charging.item.ItemType) was not found in portType
 {http://global.vodafone.com/wsdls/charging}ChargingServicePortType
 at org.apache.wsif.base.WSIFClientProxy.findMatchingOperation(Unknown
 Source)
 at org.apache.wsif.base.WSIFClientProxy.invoke(Unknown Source)
 at $Proxy0.getPrice(Unknown Source)

Olivier



Reply via email to