FORUMS


Discussion about Intalio|BPP Community Edition.


Back to BPEL (0 viewing) 
Go to bottom Favoured: 0
TOPIC: Re:something wrong on my service's wsdl ?
Nov 13, 2008 11:03 am
toto.toto3 (User)
2 posts
Fresh Boarder

Karma: 0  
Hello,


I've got a problem when I import my wsdl into an Intalio Project. It doenst recognize my return type of my operation...

This wsdl is generated with Java using jaxb api.



Thanks a lot,


Tom



Code: :

 <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="FlickrAgent" targetNamespace="http://service.flickr.osr/" xmlns:ns1="www.osrtp2.org" xmlns:ns2="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://service.flickr.osr/"  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">   <wsdl:import location="http://localhost:33000/flickr?wsdl=Flickr.wsdl" namespace="www.osrtp2.org">     </wsdl:import>   <wsdl:message name="create_PhotoSetResponse">     <wsdl:part element="ns1:rsp" name="return">     </wsdl:part>   </wsdl:message>   <wsdl:message name="getPhotosResponse">     <wsdl:part element="ns1:rsp" name="return">     </wsdl:part>   </wsdl:message>   <wsdl:message name="uploadPhoto">     <wsdl:part name="file" type="xsd:string">     </wsdl:part>   </wsdl:message>   <wsdl:message name="getPhotos">     <wsdl:part name="api_key" type="xsd:string">     </wsdl:part>     <wsdl:part name="user_id" type="xsd:string">     </wsdl:part>     <wsdl:part name="tags" type="xsd:string">     </wsdl:part>   </wsdl:message>   <wsdl:message name="create_PhotoSet">     <wsdl:part name="title" type="xsd:string">     </wsdl:part>     <wsdl:part name="desc" type="xsd:string">     </wsdl:part>     <wsdl:part name="primary_photo_id" type="xsd:string">     </wsdl:part>   </wsdl:message>   <wsdl:message name="add2PhotoSet">     <wsdl:part name="photoset_id" type="xsd:string">     </wsdl:part>     <wsdl:part name="photo_id" type="xsd:string">     </wsdl:part>   </wsdl:message>   <wsdl:message name="add2PhotoSetResponse">     <wsdl:part element="ns1:rsp" name="return">     </wsdl:part>   </wsdl:message>   <wsdl:message name="uploadPhotoResponse">     <wsdl:part element="ns1:rsp" name="return">     </wsdl:part>   </wsdl:message>   <wsdl:binding name="FlickrAgentSoapBinding" type="ns1:Flickr">     <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>     <wsdl:operation name="create_PhotoSet">       <soap:operation soapAction="" style="rpc"/>       <wsdl:input name="create_PhotoSet">         <soap:body namespace="www.osrtp2.org" use="literal"/>       </wsdl:input>       <wsdl:output name="create_PhotoSetResponse">         <soap:body namespace="www.osrtp2.org" use="literal"/>       </wsdl:output>     </wsdl:operation>     <wsdl:operation name="add2PhotoSet">       <soap:operation soapAction="" style="rpc"/>       <wsdl:input name="add2PhotoSet">         <soap:body namespace="www.osrtp2.org" use="literal"/>       </wsdl:input>       <wsdl:output name="add2PhotoSetResponse">         <soap:body namespace="www.osrtp2.org" use="literal"/>       </wsdl:output>     </wsdl:operation>     <wsdl:operation name="getPhotos">       <soap:operation soapAction="" style="rpc"/>       <wsdl:input name="getPhotos">         <soap:body namespace="www.osrtp2.org" use="literal"/>       </wsdl:input>       <wsdl:output name="getPhotosResponse">         <soap:body namespace="www.osrtp2.org" use="literal"/>       </wsdl:output>     </wsdl:operation>     <wsdl:operation name="uploadPhoto">       <soap:operation soapAction="" style="rpc"/>       <wsdl:input name="uploadPhoto">         <soap:body namespace="www.osrtp2.org" use="literal"/>       </wsdl:input>       <wsdl:output name="uploadPhotoResponse">         <soap:body namespace="www.osrtp2.org" use="literal"/>       </wsdl:output>     </wsdl:operation>   </wsdl:binding>   <wsdl:service name="FlickrAgent">     <wsdl:port binding="tns:FlickrAgentSoapBinding" name="FlickrImplPort">       <soap:address location="http://localhost:33000/flickr"/>     </wsdl:port>   </wsdl:service> </wsdl:definitions>

 
 
Last Edit: 2008/11/13 11:08 By toto.toto3.
  The administrator has disabled public write access.
Nov 13, 2008 11:14 am
Antoine (Admin)
2755 posts
Admin

Karma: 58  
This is not going to work as your import is remote:

<wsdl:import location="http://localhost:33000/flickr?wsdl=Flickr.wsdl" namespace="www.osrtp2.org">

Just import it in the project, and make the location relative.

That should get you a bit further.

Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Nov 13, 2008 12:00 pm
toto.toto3 (User)
2 posts
Fresh Boarder

Karma: 0  
This is my entire project if you want to look what is going wrong...


I would like to call the create_Photoset and add2Photoset actions from my Flickr service for instance and get response
in order to put in another service like Google Calendar...


Thanks a lot Antoine to bring me responses of my questions,

Tom
File Attachment:
File Name: TOTO.zip
File Size: 17329
 
  The administrator has disabled public write access.
Nov 13, 2008 12:17 pm
Antoine (Admin)
2755 posts
Admin

Karma: 58  
The messages defined in flickr.wsdl are invalid.

<wsdl:message name="create_PhotoSetResponse">
<wsdl:part element="ns1:rsp" name="return">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getPhotosResponse">
<wsdl:part element="ns1:rsp" name="return">
</wsdl:part>
</wsdl:message>

The element they refer to are not declared in the namespace associated to the ns1 prefix. Where is the rsp element defined ?

If it is defined in another WSDL, you can copy the <types> tag and its contents in your WSDL. If it is defined in a xsd file, you should import it.

Try using the WSDL editor to define the WSDL properly, hopefully it should be easier than typing stuff by hand.

Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Top Posters

Last 30 days

  • yodjeu.ntemde.leopold.camille (21)
  • Konstantin.Melnik (8)
  • himar.rodriguez (8)
  • amrrao1975 (6)
  • rakesh.db (6)
  • jaime.penafiel (5)
  • andre.van.der.ark (5)
  • andreas.boehm (5)
  • blue.moon (5)
  • estebanf (4)

All time

  • Antoine (2755)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (261)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.