ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacopo Cappellato <jacopo.cappell...@hotwaxmedia.com>
Subject Re: Failed comunication between Axis server and JAX-WSclient
Date Wed, 12 Nov 2014 22:04:30 GMT
ouch... this mailing list doesn't allow most of the attachments. Here is
the patch:

Index: framework/webapp/src/org/ofbiz/webapp/event/SOAPEventHandler.java

===================================================================

--- framework/webapp/src/org/ofbiz/webapp/event/SOAPEventHandler.java (revision
1638915)

+++ framework/webapp/src/org/ofbiz/webapp/event/SOAPEventHandler.java (working
copy)

@@ -37,6 +37,7 @@

 import org.apache.axiom.om.OMAbstractFactory;

 import org.apache.axiom.om.OMAttribute;

 import org.apache.axiom.om.OMElement;

+import org.apache.axiom.om.OMNamespace;

 import org.apache.axiom.om.impl.builder.StAXOMBuilder;

 import org.apache.axiom.om.util.StAXUtils;

 import org.apache.axiom.soap.SOAPBody;

@@ -245,18 +246,12 @@

             SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();

             SOAPEnvelope resEnv = factory.createSOAPEnvelope();

             SOAPBody resBody = factory.createSOAPBody();

-            OMElement resService = factory.createOMElement(new
QName(serviceName + "Response"));

+            OMNamespace namespace =
factory.createOMNamespace(ModelService.TNS, "se");

+            OMElement resService = factory.createOMElement(serviceName +
"Response", namespace);

             resService.addChild(resultSer.getFirstElement());

             resBody.addChild(resService);

             resEnv.addChild(resBody);



-            // The declareDefaultNamespace method doesn't work see (
https://issues.apache.org/jira/browse/AXIS2-3156)

-            // so the following doesn't work:

-            // resService.declareDefaultNamespace(ModelService.TNS);

-            // instead, create the xmlns attribute directly:

-            OMAttribute defaultNS = factory.createOMAttribute("xmlns",
null, ModelService.TNS);

-            resService.addAttribute(defaultNS);

-

             // log the response message

             if (Debug.verboseOn()) {

                 try {


On Wed, Nov 12, 2014 at 8:38 PM, Gianluca84 <gianluca_medici@tin.it> wrote:

> I think you forgot to attach the patch cos I'm not seeing it...
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Failed-comunication-between-Axis-server-and-JAX-WSclient-tp4658126p4658128.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message