My guess is that the fact that this message has been signed has
nothing to do with whether or not the message content is correct.
How was this message generated?
Can you post the WSDL?
The message doesn't conform to SOAP requirements, which states that
the child of the <soap:Body> must be a qualified element. Given that
there is no default namespace declared, and none of the elements are
explicitly qualified, the entire message is unqualified. (They do not
belong to "ns1".)
To answer your specific questions:
"AddressType" is declared to be belonging to the namespace
"http://www.mediclaim.org/2003/05" however "AddressType" is not
defined in the soap message with the namespace
"http://www.mediclaim.org/2003/05". Is this an error or my
understanding is wrong?
This indicates that the "AddressType" type is defined in a schema
whose targetNamespace is "http://www.mediclaim.org/2003/05".
Also, since there is no namespace prefix for <Address> element and its
child elements like <AddressLine>, <CityName> etc. does it mean all
these elements belong to default namespace instead of ns1 ? or do they
have to be explicitly prefixed with the namespace prefix ns1 ?. Is the
soap message generated using AXIS for the <Address> element correct?
No default namespace has been defined; therefore, all of these
elements are in no namespace. They are not in the "ns1" namespace.
(Only the "AddressType" type is in the "ns1" namespace.) The message
is inappropriate, but Axis will generate a message that corresponds to
the WSDL. If the WSDL is wrong, the the resulting message will be
wrong.
Please post the WSDL.
Anne
On 7/14/06, akkachotu <[EMAIL PROTECTED]> wrote:
I have below soap message with WS Security Signature generated by Axis 1.2.1:
<?xml version="1.0" encoding="UTF-8"?>
<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:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
....
....
<soapenv:Body Id="Body">
...
...
<Address xsi:type="ns1:AddressType"
xmlns:ns1="http://www.mediclaim.org/2003/05">
<AddressLine>2200 W</AddressLine>
<CityName>VEGAS</CityName>
<PostalCode>34343</PostalCode>
<StateProv StateCode="IL">BLAH</StateProv>
<CountryName Code="US">USA</CountryName>
</Address>
....
....
</soapenv:Body>
</soapenv:Envelope>
"AddressType" is declared to be belonging to the namespace
"http://www.mediclaim.org/2003/05" however "AddressType" is not
defined in the soap message with the namespace
"http://www.mediclaim.org/2003/05". Is this an error or my
understanding is wrong?
Also, since there is no namespace prefix for <Address> element and its
child elements like <AddressLine>, <CityName> etc. does it mean all
these elements belong to default namespace instead of ns1 ? or do they
have to be explicitly prefixed with the namespace prefix ns1 ?. Is the
soap message generated using AXIS for the <Address> element correct?
Can anyone please clarify?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]