WSDL issue for PartyServices.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

WSDL issue for PartyServices.

raminbox
Hi All,

I am trying to make createPerson service an webservice, by stting export=true.
org.ofbiz.party.party.PartyServices

But i am not able to access the wsdl using http://127.0.0.1:8080/webtools/control/SOAPService/createPerson?WSDL

Its extremely urgent i get this working.

please help me out

regards
ram.
Reply | Threaded
Open this post in threaded view
|

Re: WSDL issue for PartyServices.

BJ Freeman
http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
only documentation I find.
remember ofbiz does not handle complex types, only simple.

there has been many questions of soap but very little information.
Please as you find answer add them to the link above.

raminbox sent the following on 12/15/2008 7:38 AM:

> Hi All,
>
> I am trying to make createPerson service an webservice, by stting
> export=true.
> org.ofbiz.party.party.PartyServices
>
> But i am not able to access the wsdl using
> http://127.0.0.1:8080/webtools/control/SOAPService/createPerson?WSDL
>
> Its extremely urgent i get this working.
>
> please help me out
>
> regards
> ram.
Reply | Threaded
Open this post in threaded view
|

Re: WSDL issue for PartyServices.

raminbox
Hi BJ,
Thanks a lot for your mail.

But i am trying to expose PartyServices as a web service. in that case what
is my option?
i cannot deploy party services in axis right? as its an integral part of
ofbiz?


also any work around avilable?

regards
Ram.

On Mon, Dec 15, 2008 at 12:15 PM, BJ Freeman <[hidden email]> wrote:

>
> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
> only documentation I find.
> remember ofbiz does not handle complex types, only simple.
>
> there has been many questions of soap but very little information.
> Please as you find answer add them to the link above.
>
> raminbox sent the following on 12/15/2008 7:38 AM:
> > Hi All,
> >
> > I am trying to make createPerson service an webservice, by stting
> > export=true.
> > org.ofbiz.party.party.PartyServices
> >
> > But i am not able to access the wsdl using
> > http://127.0.0.1:8080/webtools/control/SOAPService/createPerson?WSDL
> >
> > Its extremely urgent i get this working.
> >
> > please help me out
> >
> > regards
> > ram.
>
Reply | Threaded
Open this post in threaded view
|

Re: WSDL issue for PartyServices.

Alfredo Rueda
Hello!

If you follow:

http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP

you will be able to export PartyServices as a web service very quickly!

I'm planning to release a simple and ready to use Ofbiz component named "Axis2" that will allow to export ofbiz services that use complex types as Web Services. It's based on http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP article.

The component is finished and it's working perfectly but it contains customer specific information. I need to remove this customer specific info previous release.

Don't hesitate to ask for help if you run into trouble following the steps in the howto.

Regards,

Alfredo

raminbox wrote
Hi BJ,
Thanks a lot for your mail.

But i am trying to expose PartyServices as a web service. in that case what
is my option?
i cannot deploy party services in axis right? as its an integral part of
ofbiz?


also any work around avilable?

regards
Ram.

On Mon, Dec 15, 2008 at 12:15 PM, BJ Freeman <bjfree@free-man.net> wrote:

>
> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
> only documentation I find.
> remember ofbiz does not handle complex types, only simple.
>
> there has been many questions of soap but very little information.
> Please as you find answer add them to the link above.
>
> raminbox sent the following on 12/15/2008 7:38 AM:
> > Hi All,
> >
> > I am trying to make createPerson service an webservice, by stting
> > export=true.
> > org.ofbiz.party.party.PartyServices
> >
> > But i am not able to access the wsdl using
> > http://127.0.0.1:8080/webtools/control/SOAPService/createPerson?WSDL
> >
> > Its extremely urgent i get this working.
> >
> > please help me out
> >
> > regards
> > ram.
>
Reply | Threaded
Open this post in threaded view
|

Re: WSDL issue for PartyServices.

Jacques Le Roux
Administrator
That's great news Alfredo;

Please feel free to open a Jira issue following these best practices recommandations
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices

Thanks

Jacques

From: "Alfredo Rueda" <[hidden email]>

>
> Hello!
>
> If you follow:
>
> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
>
> you will be able to export PartyServices as a web service very quickly!
>
> I'm planning to release a simple and ready to use Ofbiz component named
> "Axis2" that will allow to export ofbiz services that use complex types as
> Web Services. It's based on
> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
> article.
>
> The component is finished and it's working perfectly but it contains
> customer specific information. I need to remove this customer specific info
> previous release.
>
> Don't hesitate to ask for help if you run into trouble following the steps
> in the howto.
>
> Regards,
>
> Alfredo
>
>
> raminbox wrote:
>>
>> Hi BJ,
>> Thanks a lot for your mail.
>>
>> But i am trying to expose PartyServices as a web service. in that case
>> what
>> is my option?
>> i cannot deploy party services in axis right? as its an integral part of
>> ofbiz?
>>
>>
>> also any work around avilable?
>>
>> regards
>> Ram.
>>
>> On Mon, Dec 15, 2008 at 12:15 PM, BJ Freeman <[hidden email]> wrote:
>>
>>>
>>> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
>>> only documentation I find.
>>> remember ofbiz does not handle complex types, only simple.
>>>
>>> there has been many questions of soap but very little information.
>>> Please as you find answer add them to the link above.
>>>
>>> raminbox sent the following on 12/15/2008 7:38 AM:
>>> > Hi All,
>>> >
>>> > I am trying to make createPerson service an webservice, by stting
>>> > export=true.
>>> > org.ofbiz.party.party.PartyServices
>>> >
>>> > But i am not able to access the wsdl using
>>> > http://127.0.0.1:8080/webtools/control/SOAPService/createPerson?WSDL
>>> >
>>> > Its extremely urgent i get this working.
>>> >
>>> > please help me out
>>> >
>>> > regards
>>> > ram.
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/WSDL-issue-for-PartyServices.-tp21016026p21031875.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: WSDL issue for PartyServices.

Alfredo Rueda
In reply to this post by raminbox
Hello!

You will not deploy party ofbiz services in axis. You will deploy in Axis2 a simple wrapper that will call
party ofbiz services in order to expose its methods via SOAP architecture.

Regards,

Alfredo

raminbox wrote
Hi BJ,
Thanks a lot for your mail.

But i am trying to expose PartyServices as a web service. in that case what
is my option?
i cannot deploy party services in axis right? as its an integral part of
ofbiz?


also any work around avilable?

regards
Ram.

On Mon, Dec 15, 2008 at 12:15 PM, BJ Freeman <bjfree@free-man.net> wrote:

>
> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
> only documentation I find.
> remember ofbiz does not handle complex types, only simple.
>
> there has been many questions of soap but very little information.
> Please as you find answer add them to the link above.
>
> raminbox sent the following on 12/15/2008 7:38 AM:
> > Hi All,
> >
> > I am trying to make createPerson service an webservice, by stting
> > export=true.
> > org.ofbiz.party.party.PartyServices
> >
> > But i am not able to access the wsdl using
> > http://127.0.0.1:8080/webtools/control/SOAPService/createPerson?WSDL
> >
> > Its extremely urgent i get this working.
> >
> > please help me out
> >
> > regards
> > ram.
>
Reply | Threaded
Open this post in threaded view
|

Re: WSDL issue for PartyServices.

raminbox
Hi Alfredo,

Thanks for your mail.

Also once the component is ready, please do drop in a mail. It would be of great help to me.

Assumption
Also i have question, with regard to SOAP based web services, its written OfBiz supports simple types but not complex types, my understanding is that complex types are custom objects, where as simple types include String, Date, Double, etc....
Also my assumption is that OfBiz supports only String. it doesn't convert the IN parameters to any other types.
Please correct me if i am wrong in the above statements.

Issue
Also i have attached few files, if you get time please help me with the error and where i am going wrong.
I had exposed a service "createPerson" from ofbiz as a external service. Service takes a list of fields and creates a Person in the DB. Few of the fields of the Person are java.util.Date and java.lang.Double.

 Once I deploy the service, the WSDL file ( Attached : createPerson.wsdl ) is hosted within my localhost. 

I use SOAP UI tool to simulate the SOAP request to send to the webservice. Once I specify the wsdl location SOAP UI tool provides me with a template request, I fill up the template request with values and send the request to the web service ( Attached : SOAP_Request.xml )

In this case the server throws an error for every parameter that is not String. (Attached: Error.log)

Any hints? am i doing something wrong with the SOAP request or its just that OfBiz understands only String?


Regards

Ram

[hidden email]


On Tue, Dec 16, 2008 at 8:42 AM, Alfredo Rueda <[hidden email]> wrote:

Hello!

You will not deploy party ofbiz services in axis. You will deploy in Axis2 a
simple wrapper that will call
party ofbiz services in order to expose its methods via SOAP architecture.

Regards,

Alfredo


raminbox wrote:
>
> Hi BJ,
> Thanks a lot for your mail.
>
> But i am trying to expose PartyServices as a web service. in that case
> what
> is my option?
> i cannot deploy party services in axis right? as its an integral part of
> ofbiz?
>
>
> also any work around avilable?
>
> regards
> Ram.
>
> On Mon, Dec 15, 2008 at 12:15 PM, BJ Freeman <[hidden email]> wrote:
>
>>
>> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
>> only documentation I find.
>> remember ofbiz does not handle complex types, only simple.
>>
>> there has been many questions of soap but very little information.
>> Please as you find answer add them to the link above.
>>
>> raminbox sent the following on 12/15/2008 7:38 AM:
>> > Hi All,
>> >
>> > I am trying to make createPerson service an webservice, by stting
>> > export=true.
>> > org.ofbiz.party.party.PartyServices
>> >
>> > But i am not able to access the wsdl using
>> > http://127.0.0.1:8080/webtools/control/SOAPService/createPerson?WSDL
>> >
>> > Its extremely urgent i get this working.
>> >
>> > please help me out
>> >
>> > regards
>> > ram.
>>
>
>

--
View this message in context: http://www.nabble.com/WSDL-issue-for-PartyServices.-tp21016026p21033300.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



SOAP_Request.xml (2K) Download Attachment
createPerson.wsdl (4K) Download Attachment