You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gargankur007 <ga...@gmail.com> on 2015/06/04 16:00:07 UTC
Document Style bare WSDL not working in camel cxf
Hi
Below is my sample request
"<?xml version="1.0" encoding="UTF-8"?> <XpgIntegratedPaymentRequest
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"> <ClientId>RMHP</ClientId>
<InputParameters></InputParameters> </XpgIntegratedPaymentRequest> "
Now when i hit the service it says that gives below fault
"<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unexpected element
{http://schemas.xmlsoap.org/soap/envelope/}XpgIntegratedPaymentRequest
found. Expected
{http://wem-rmhpimpl.demo.hcentive.com:9090/wsx/services/WemXpgPaymentService}XpgIntegratedPaymentRequest.</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>"
Below is my WS definition
@WebService(name = "WsTransactionImlMetroSoap11", targetNamespace =
"http://wem-rmhpimpl.demo.hcentive.com:9090/wsx/services/WemXpgPaymentService")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso({
ObjectFactory.class
})
public interface WsTransactionImlMetroSoap11 {
/**
*
* @param parameters
* @return
* returns com.hcentive.XpgIntegratedPaymentResponseType
*/
@WebMethod(action =
"http://wem-rmhpimpl.demo.hcentive.com:9090/wsx/getWemXpgPaymentRequest")
@WebResult(name = "XpgIntegratedPaymentResponse", targetNamespace = "",
partName = "parameters")
public XpgIntegratedPaymentResponseType getWemXpgPaymentRequest(
@WebParam(name = "XpgIntegratedPaymentRequest", targetNamespace =
"", partName = "parameters")
XpgIntegratedPaymentRequestType parameters);
}
--
View this message in context: http://camel.465427.n5.nabble.com/Document-Style-bare-WSDL-not-working-in-camel-cxf-tp5767867.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Document Style bare WSDL not working in camel cxf
Posted by gargankur007 <ga...@gmail.com>.
HI
I got to this point by googling
Unfortunately, the only real solution here is fixing the wrong message. As a
workaround, though, you might want to try setting the Apache CXF
soap.no.validate.parts property to true in the message context.
Unfortunately, on server side that's not easily done in an effective way
withouth introducing a dependency to apache cxf api; you should try adding
@org.apache.cxf.annotations.EndpointProperty(key = "soap.no.validate.parts",
value = "true") to your endpoint impl class. - See more at:
https://developer.jboss.org/thread/205931#sthash.A9kXXQrB.dpuf
How can I set this property in camle cxf?
--
View this message in context: http://camel.465427.n5.nabble.com/Document-Style-bare-WSDL-not-working-in-camel-cxf-tp5767867p5767945.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Document Style bare WSDL not working in camel cxf
Posted by gargankur007 <ga...@gmail.com>.
Is there any way in camel cxf bare tsyle document WSDl can be made to work?
--
View this message in context: http://camel.465427.n5.nabble.com/Document-Style-bare-WSDL-not-working-in-camel-cxf-tp5767867p5767942.html
Sent from the Camel - Users mailing list archive at Nabble.com.