FYI:
We don't have options.setSOAPAction() anymore...
options.setAction() will set the soapAction and/or the wsa:Action (if
addressing is engaged) properly.
Thanks,
Ruchith
On 3/14/06, Michael Robinson [EMAIL PROTECTED] wrote:
Thanks!!
One question though:
options.setSoapAction(actionName);
options.setAction(actionName);
both fixed the problem. Is there a difference?
Thanks again for both replies.
Michael
From: Dong Liu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 11:41 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] How to specifiy operation name
Maybe you try to specify the SoapAction in your option like
options.setSoapAction(actionName); // I guess actionName is
childSupportEnforcementFiling
Hope it helps.
Cheer,
Don
On 3/14/06, Michael Robinson [EMAIL PROTECTED] wrote:
My main problem is that depending on the XML instance that I read in and
send I sometimes get:
org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Operation Not found
EPR is
http://127.0.0.1:8080/axis2/services/DocumentServiceX and
WSA Action =
at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:46)
at
org.apache.axis2.engine.Phase.invoke(Phase.java:391)
at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:351)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:322)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:274)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:150)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Which seems to depend on the root node of the XML instance. If I send in
something like:
?xml version = '1.0' encoding = 'UTF-8'?
childSupportEnforcementFiling
js:ChildSupportPackage
xmlns:js=http://schema.gaaoc.us/body/ga/washington/document/cse/extension
j:Case
xmlns:j=http://www.it.ojp.gov/jxdm/3.0.2;
….
Everything works fine and the operation name childSupportEnforcementFiling
is invoked. But if I send:
?xml version = '1.0' encoding = 'UTF-8'?
ChildSupportEnforcementFiling
js:ChildSupportPackage
xmlns:js=http://schema.gaaoc.us/body/ga/washington/document/cse/extension
j:Case
xmlns:j=http://www.it.ojp.gov/jxdm/3.0.2;
….
I get the exception mentioned above. The same for if I send in something
like:
?xml version = '1.0' encoding = 'UTF-8'?
ChildSupportEnforcementFiling
xmlns=http://schema.gaaoc.us/body/ga/washington/document/cse/document-schema.xsd
schemaLocation=http://schema.gaaoc.us/body/ga/washington/document/cse/document-schema.xsd
http://schema.gaaoc.us/body/ga/washington/document/cse/document-schema.xsd;
js:ChildSupportPackage
xmlns:js=http://schema.gaaoc.us/body/ga/washington/document/cse/extension
j:Case
xmlns:j=http://www.it.ojp.gov/jxdm/3.0.2;
….
Which is where I am trying to get to.
Also here is my services.xml:
service name=MTOMService
description
Web Service for receiving Child Support Enforcement filing(s) w/
MTOM based binary data transfer.
/description
parameter name=ServiceClass
locked=falseus.gaaoc.service.MTOMService/parameter
operation name=childSupportEnforcementFiling
messageReceiver
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/
/operation
/service
From: Michael Robinson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 10:42 AM
To: axis-user@ws.apache.org
Subject: [Axis2] How to specifiy operation name
I am attempting to create both the service and client for a document centric
web service with each exchange based on a XML Schema instance.
I have taken the MTOM examples (mostly the imagetransfer example) and am
trying to from the client load an XML instance (instead of a jpeg) and then
call the service passing the instance as the SOAP body element. I have this
working…. sortof. In the examples the root element of the XML within the
SOAP body matches the operation name so the client finds the operation and
everything is great! Is this the default behavior? It seems that some of the
examples declare a QName but then never use the variable to set the desired
operation which increases my confusion.
How do I specify the remote operation? I have noticed some of the examples
using objects of AxisService and OperationClient. Is this what I am looking
for? I didn't see anything in the documentation thus far that talks about
specifying the remote operation from the client. Did I miss