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. |
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. > |
Administrator
|
In reply to this post by MarioF
Look for SOAP in FAQ
Jacques From: "MarioF" <[hidden email]> > > 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. > |
In reply to this post by Chris Snow-3
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.
|
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. > > |
We downloaded one of the trunks and then we made with it a local svn to work with it.
|
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. > |
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 > > > > |
Free forum by Nabble | Edit this page |