Problems accessing web service through Axis 1.2
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   reshmab_bendre
Posted On:   Wednesday, August 3, 2005 10:41 AM

hello i have generated client stub for my wsdl using Axis 1.2. I m sending attachment to web service. my wsdl file is <?xml version="1.0" encoding="UTF-8"?> targetNamespace="http://www.arexera.de/ns/XDFSOAPServer" xmlns:tns="http://www.arexera.de/ns/XDFSOAPServer" 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:xdf="http://www.arexera.de/ns/XDFSOAPS   More>>

hello


i have generated client stub for my wsdl using Axis 1.2.
I m sending attachment to web service.
my wsdl file is



			
<?xml version="1.0" encoding="UTF-8"?>



targetNamespace="http://www.arexera.de/ns/XDFSOAPServer"

xmlns:tns="http://www.arexera.de/ns/XDFSOAPServer"

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:xdf="http://www.arexera.de/ns/XDFSOAPServer"

xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"

xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"

xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"

xmlns="http://schemas.xmlsoap.org/wsdl/">








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:xdf="http://www.arexera.de/ns/XDFSOAPServer"

xmlns="http://www.w3.org/2001/XMLSchema"

elementFormDefault="unqualified"

attributeFormDefault="unqualified">
















































































Service definition of function xdf__authenticate









Service definition of function xdf__processDocument






















































gSOAP 2.7.0d generated service definition














while giving request through Axis stub i m getting following exception


			
AxisFault

faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException

faultSubcode:

faultString: java.io.UnsupportedEncodingException: utf-8;
start=" "

faultActor:

faultNode:

faultDetail:

{http://xml.apache.org/axis/}stackTrace:java.io.UnsupportedEncodingException:
utf-8; start=" "

at sun.io.Converters.getConverterClass(Unknown Source)

at sun.io.Converters.newConverter(Unknown Source)

at sun.io.ByteToCharConverter.getConverter(Unknown Source)

at sun.nio.cs.StreamDecoder$ConverterSD. (Unknown Source)

at sun.nio.cs.StreamDecoder$ConverterSD. (Unknown Source)

at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source)

at java.io.InputStreamReader. (Unknown Source)

at org.apache.crimson.parser.XmlReader.createReader(Unknown Source)

at org.apache.crimson.parser.InputEntity.init(Unknown Source)

at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)

at org.apache.crimson.parser.Parser2.parse(Unknown Source)

at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)

at javax.xml.parsers.SAXParser.parse(Unknown Source)

at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)

at com.ail.xiip.XDFSoap_BindingStub.processDocument(XDFSoap_BindingStub.java:273)

at com.ail.xiip.XDFSoap_ServiceTestCase.test2XDFSoapProcessDocument(XDFSoap_ServiceTestCase.java:68)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at junit.framework.TestCase.runTest(TestCase.java:154)

at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:118)

at junit.framework.TestSuite.runTest(TestSuite.java:208)

at junit.framework.TestSuite.run(TestSuite.java:203)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)


{http://xml.apache.org/axis/}hostname:reshma


java.io.UnsupportedEncodingException: utf-8;
start=" "

at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)

at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)

at com.ail.xiip.XDFSoap_BindingStub.processDocument(XDFSoap_BindingStub.java:273)

at com.ail.xiip.XDFSoap_ServiceTestCase.test2XDFSoapProcessDocument(XDFSoap_ServiceTestCase.java:68)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at junit.framework.TestCase.runTest(TestCase.java:154)

at junit.framework.TestCase.runBare(TestCase.java:127)

at junit.framework.TestResult$1.protect(TestResult.java:106)

at junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:118)

at junit.framework.TestSuite.runTest(TestSuite.java:208)

at junit.framework.TestSuite.run(TestSuite.java:203)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

Caused by: java.io.UnsupportedEncodingException: utf-8;
start=" "

at sun.io.Converters.getConverterClass(Unknown Source)

at sun.io.Converters.newConverter(Unknown Source)

at sun.io.ByteToCharConverter.getConverter(Unknown Source)

at sun.nio.cs.StreamDecoder$ConverterSD. (Unknown Source)

at sun.nio.cs.StreamDecoder$ConverterSD. (Unknown Source)

at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source)

at java.io.InputStreamReader. (Unknown Source)

at org.apache.crimson.parser.XmlReader.createReader(Unknown Source)

at org.apache.crimson.parser.InputEntity.init(Unknown Source)

at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)

at org.apache.crimson.parser.Parser2.parse(Unknown Source)

at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)

at javax.xml.parsers.SAXParser.parse(Unknown Source)

at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

... 18 more




plzz help me as soon as possible ...i m in big trouble...
waiting 4 reply.

Reshma

   <<Less
About | Sitemap | Contact