Call WSDL service from OFbiz?

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

Call WSDL service from OFbiz?

MarioF
Hi all,

I added a new email to my ofbiz. In the body of this email (a .ftl file) I need the data coming for a WSDL service. So, how can I call a WSDL service from a .ftl file? Is this possible or I have to do this in another way?

Thanks in advance.

Reply | Threaded
Open this post in threaded view
|

Re: Call WSDL service from OFbiz?

Jacques Le Roux
Administrator
Quick answer : you would have to create a static worker method for this. Not sure it's a recommend way to do it though...

Jacques

From: "MarioF" <[hidden email]>

>
> Hi all,
>
> I added a new email to my ofbiz. In the body of this email (a .ftl file) I
> need the data coming for a WSDL service. So, how can I call a WSDL service
> from a .ftl file? Is this possible or I have to do this in another way?
>
> Thanks in advance.
>
>
> --
> View this message in context: http://n4.nabble.com/Call-WSDL-service-from-OFbiz-tp183797p183797.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: Call WSDL service from OFbiz?

MarioF
Thanks Jacques. Do you know where can I find an example? I don't know how to start to do this.


Jacques Le Roux wrote
Quick answer : you would have to create a static worker method for this. Not sure it's a recommend way to do it though...

Jacques

From: "MarioF" <oceanoartico@gmail.com>
>
> Hi all,
>
> I added a new email to my ofbiz. In the body of this email (a .ftl file) I
> need the data coming for a WSDL service. So, how can I call a WSDL service
> from a .ftl file? Is this possible or I have to do this in another way?
>
> Thanks in advance.
>
>
> --
> View this message in context: http://n4.nabble.com/Call-WSDL-service-from-OFbiz-tp183797p183797.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Call WSDL service from OFbiz?

Jacques Le Roux
Administrator
To call a service you may use something like

<#assign billToPartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId",
billToParty.partyId, "compareDate", orderHeader.orderDate, "userLogin", userLogin))/>
I never used something like taht to call a webservce though..

Jacques


From: "MarioF" <[hidden email]>

>
> Thanks Jacques. Do you know where can I find an example? I don't know how to
> start to do this.
>
>
>
> Jacques Le Roux wrote:
>>
>> Quick answer : you would have to create a static worker method for this.
>> Not sure it's a recommend way to do it though...
>>
>> Jacques
>>
>> From: "MarioF" <[hidden email]>
>>>
>>> Hi all,
>>>
>>> I added a new email to my ofbiz. In the body of this email (a .ftl file)
>>> I
>>> need the data coming for a WSDL service. So, how can I call a WSDL
>>> service
>>> from a .ftl file? Is this possible or I have to do this in another way?
>>>
>>> Thanks in advance.
>>>
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/Call-WSDL-service-from-OFbiz-tp183797p183797.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/Call-WSDL-service-from-OFbiz-tp183797p190745.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>