Hello
I am using axis 1.3 and tomcat 4.1. I am writting some java classes for my web service (server-side).
But i have some problems with Xml attribute fields (this is my third email so i am apologize for annoyance.).
my question is how can get xml element attribute value ?
Which parameters and definitions should be modified or made in wsdd file or java class?
also i am send,ng my java class, wsdd file and SOAP request xml
java.Class:
package WSApp.Beans;
public class TestWS {
public TestWS() {
}
public String myWSMethod(String s, int xmlAttributeParameter ) {
// doing something
//.................. ....
return "I got "s + " OK ";
}
}
---------------------------------------------------------------------------------------
My wsdd file :
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
xmlns:TestWS="http://www.axis.com/TestWS"
xmlns:reg="http://www.soapinterop.org/Registry">
<service name="TestWS" provider="java:RPC">
<namespace>http://www.axis.com/TestWS</namespace>
<parameter name="className" value="WSApp.Beans.TestWS"/>
<parameter name="allowedMethods" value="myWSMethod"/>
<requestFlow>
<handler type="soapmonitor"/>
</requestFlow>
<responseFlow>
<handler type="soapmonitor"/>
</responseFlow>
</service>
</deployment>
------------------------------------------------------------------------------------
my SOAP request xml message
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:m0="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<myWSMethod>
<s xmlAttributeParameter="12">Jhon </s>
</myWSMethod>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
---------------------------------------------------------------------------------------------------------------------
my problem is how can i get value of "xmlAttributeParameter" ?
please someone help me i am really stuck about this.
Thanks.
- XML Attribute Value Recep Ayaz
- Re: XML Attribute Value Anne Thomas Manes
- Re: XML Attribute Value Recep Ayaz
- Re: XML Attribute Value Anne Thomas Manes
- Re: XML Attribute Value Anne Thomas Manes
- Re: XML Attribute Value Recep Ayaz
- Re: XML Attribute Value Anne Thomas Manes
- Re: XML Attribute Value Recep Ayaz