You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-dev@ws.apache.org by "Ben Reif (JIRA)" <ws...@ws.apache.org> on 2007/01/19 21:22:30 UTC
[jira] Created: (WSIF-89) setCallParameterNames generates xmlns=""
for Doc/Lit style services
setCallParameterNames generates xmlns="" for Doc/Lit style services
-------------------------------------------------------------------
Key: WSIF-89
URL: https://issues.apache.org/jira/browse/WSIF-89
Project: Axis-WSIF
Issue Type: Bug
Affects Versions: 2.1
Reporter: Ben Reif
Fix For: 2.1
This could be the same issue entered for WSIF-45.
I have a Document Literal style service deployed in Axis 1.4. The WSDL has
an operation that defines its input as 'StateChangedRq' that is in
namespace http://docs.oasis-open.org/asap/1.0/asap.xsd. I run wsdl2java
without generating wrapper objects and also use a nsToPkg properties file
to map the http://docs.oasis-open.org/asap/1.0/asap.xsd namespace to the
com.my.package.wfxml.consumer.types. This generates Stub classes and also
the input java bean com.my.package.wfxml.consumer.types.StateChangedRq.
When I run the client using the Stubs everything works fine and the SOAP
message comes out like:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<soapenv:Body>
<StateChangedRq xmlns="http://docs.oasis-open.org/asap/1.0/asap.xsd">
<State>closed.abnormalCompleted.aborted.error</State>
<PreviousState>open.running.created</PreviousState>
</StateChangedRq>
</soapenv:Body>
</soapenv:Envelope>
Notice how the <StateChangedRq> element is in the
http://docs.oasis-open.org/asap/1.0/asap.xsd namespace. (Note, this is
also not the target namespace by the way)
I am now trying to use WSIF 2.1.0 and the ApacheAxis provider to
dynamically invoke the service so that I don't have to generate out the
Stubs. The problem is that in
WSIFOperation_ApacheAxis.setCallParameterNames() it has the following
code:
String inputNamespace;
if (WSIFAXISConstants.USE_LITERAL.equals(getInputUse())
&& !wrappedStyleOp) {
inputNamespace = "";
} else {
inputNamespace = getInputNamespace();
}
Because it's a doc/lit style service and is not wrapped the inputNamespace
variable gets set to "" and so my SOAP message comes out like this with
an an empty namespace for the first element:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<soapenv:Body>
<StateChangedRq xmlns="">
<ns1:State xmlns:ns1="http://docs.oasis-open.org/asap/1.0/asap.xsd">closed.abnormalCompleted.aborted.error</ns1:State>
<ns2:PreviousState xmlns:ns2="http://docs.oasis-open.org/asap/1.0/asap.xsd">open.running.acquired</ns2:PreviousState>
</StateChangedRq>
</soapenv:Body>
</soapenv:Envelope>
This causes a problem because the Axis server can not resolve the element
because it is in the wrong namespace or has no namespace.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: wsif-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wsif-dev-help@ws.apache.org