You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by MarioF <oc...@gmail.com> on 2010/01/19 15:11:40 UTC
Axis2 service in OFBIZ?
Hi all,
I need that OFBIZ can manage some Axis2 services. In one of them ofbiz has
to change the statusId of some orderId. I have made this change in java
code, but I am not sure how to make an axis2 service.
I think that I have to do the following:
- Make a service in service.xml with export="true" and
location="the.java.package"
- Run always this service in ofbiz. (Applications --> Webtools --> Run
Service).
Is that true? Have I to make something more?
Thanks in advance,
Mario.
--
View this message in context: http://n4.nabble.com/Axis2-service-in-OFBIZ-tp1017558p1017558.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Axis2 service in OFBIZ?
Posted by Chris Snow <sn...@snowconsulting.co.uk>.
You have downloaded revision 889551. The soap instructions I wrote
won't work unless you are running at least revision 892712.
On 27/01/2010 10:51, MarioF wrote:
> I downloaded this one:
>
> http://build.ofbiz.org/builds/ofbiz-trunk-2009-12-11-v889551.zip
> http://build.ofbiz.org/builds/ofbiz-trunk-2009-12-11-v889551.zip
>
>
>
>
Re: Axis2 service in OFBIZ?
Posted by MarioF <oc...@gmail.com>.
I downloaded this one:
http://build.ofbiz.org/builds/ofbiz-trunk-2009-12-11-v889551.zip
http://build.ofbiz.org/builds/ofbiz-trunk-2009-12-11-v889551.zip
--
View this message in context: http://n4.nabble.com/Axis2-service-in-OFBIZ-tp1017558p1311478.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Axis2 service in OFBIZ?
Posted by Chris Snow <sn...@snowconsulting.co.uk>.
Whick trunk did you download?
On 27/01/2010 10:14, MarioF wrote:
> We downloaded one of the trunks and then we made with it a local svn to work
> with it.
>
Re: Axis2 service in OFBIZ?
Posted by MarioF <oc...@gmail.com>.
We downloaded one of the trunks and then we made with it a local svn to work
with it.
--
View this message in context: http://n4.nabble.com/Axis2-service-in-OFBIZ-tp1017558p1311435.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Axis2 service in OFBIZ?
Posted by Chris Snow <sn...@snowconsulting.co.uk>.
Hi Mario, how did you install ofbiz - from svn?
On 27/01/2010 09:57, MarioF wrote:
> Hi Chris,
>
> I follow the steps in that document but I receive an error. I only made the
> following change in the step 4 (Create your axis client): opts.setTo(new
> EndpointReference("http://localhost:8080/webtools/control/SOAPService"));
> The rest is all the same.
>
> The error that I receive is this:
>
> Exception in thread "main" org.apache.axis2.AxisFault:
> com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
> at [row,col {unknown-source}]: [1,0]
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:118)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:539)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
> at
> org.ofbiz.test.notifyJobFinishedClient.main(notifyJobFinishedClient.java:61)
>
>
> I read that your document is only relevant to release r892712+. I don't know
> which is my release. Could be the problem related to the release? Do you
> know why I am receiving this error?
>
> Thanks in advance,
> Mario.
>
>
Re: Axis2 service in OFBIZ?
Posted by MarioF <oc...@gmail.com>.
Hi Chris,
I follow the steps in that document but I receive an error. I only made the
following change in the step 4 (Create your axis client): opts.setTo(new
EndpointReference("http://localhost:8080/webtools/control/SOAPService"));
The rest is all the same.
The error that I receive is this:
Exception in thread "main" org.apache.axis2.AxisFault:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:118)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:539)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
at
org.ofbiz.test.notifyJobFinishedClient.main(notifyJobFinishedClient.java:61)
I read that your document is only relevant to release r892712+. I don't know
which is my release. Could be the problem related to the release? Do you
know why I am receiving this error?
Thanks in advance,
Mario.
Chris Snow-2 wrote:
>
> if you want to have an axis2 service running in ofbiz, this may help:
> http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=9798255
>
> MarioF wrote:
>> Hi all,
>>
>> I need that OFBIZ can manage some Axis2 services. In one of them ofbiz
>> has
>> to change the statusId of some orderId. I have made this change in java
>> code, but I am not sure how to make an axis2 service.
>>
>> I think that I have to do the following:
>>
>> - Make a service in service.xml with export="true" and
>> location="the.java.package"
>> - Run always this service in ofbiz. (Applications --> Webtools --> Run
>> Service).
>>
>> Is that true? Have I to make something more?
>>
>> Thanks in advance,
>> Mario.
>>
>
>
>
--
View this message in context: http://n4.nabble.com/Axis2-service-in-OFBIZ-tp1017558p1311416.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Axis2 service in OFBIZ?
Posted by Chris Snow <sn...@snowconsulting.co.uk>.
if you want to have an axis2 service running in ofbiz, this may help:
http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=9798255
MarioF wrote:
> Hi all,
>
> I need that OFBIZ can manage some Axis2 services. In one of them ofbiz has
> to change the statusId of some orderId. I have made this change in java
> code, but I am not sure how to make an axis2 service.
>
> I think that I have to do the following:
>
> - Make a service in service.xml with export="true" and
> location="the.java.package"
> - Run always this service in ofbiz. (Applications --> Webtools --> Run
> Service).
>
> Is that true? Have I to make something more?
>
> Thanks in advance,
> Mario.
>
Re: Axis2 service in OFBIZ?
Posted by Jacques Le Roux <ja...@les7arts.com>.
Look for SOAP in FAQ
Jacques
From: "MarioF" <oc...@gmail.com>
>
> Hi all,
>
> I need that OFBIZ can manage some Axis2 services. In one of them ofbiz has
> to change the statusId of some orderId. I have made this change in java
> code, but I am not sure how to make an axis2 service.
>
> I think that I have to do the following:
>
> - Make a service in service.xml with export="true" and
> location="the.java.package"
> - Run always this service in ofbiz. (Applications --> Webtools --> Run
> Service).
>
> Is that true? Have I to make something more?
>
> Thanks in advance,
> Mario.
> --
> View this message in context: http://n4.nabble.com/Axis2-service-in-OFBIZ-tp1017558p1017558.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>