Results 1 to 1 of 1
Thread: Using web services in Java
- 02-27-2010, 08:14 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 25
- Rep Power
- 0
Using web services in Java
Hi all,
I am new to using web services in JAVA. I am trying to call a .NET Web service through my JAVA code. It is password protected. But in my browser i am able to open that page with out giving authentication details. I am trying to call a method of this web service using my JAVA code . I am using the which uses ServiceFactory and Call classes. Though i give all details correctly, I am getting an error like
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: WSE402: The message does not conform to the policy it was mapped to.
faultActor: https://pilot.xatanet.net/xatanetweb...itservice.asmx
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:WSE402: The message does not conform to the policy it was mapped to.
at org.apache.axis.message.SOAPFaultBuilder.createFau lt(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElemen t(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.en dElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endEle ment(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.sc anEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.pa rse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPar t.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.ja va:435)
at org.apache.axis.handlers.soap.MustUnderstandChecke r.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClien t.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java :2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at MainObj.main(MainObj.java:79)
WSE402: The message does not conform to the policy it was mapped to.
at org.apache.axis.message.SOAPFaultBuilder.createFau lt(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElemen t(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.en dElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endEle ment(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.sc anEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.pa rse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPar t.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.ja va:435)
at org.apache.axis.handlers.soap.MustUnderstandChecke r.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClien t.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java :2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at MainObj.main(MainObj.java:79)
Pls help me out to solve this problem. I am totally new to using web services.
Pls help me :)Last edited by madhu_sushmi; 02-27-2010 at 08:33 PM.
Similar Threads
-
Web Services
By Cbani in forum Advanced JavaReplies: 6Last Post: 01-24-2010, 02:15 PM -
ServiceLayer Beta Release – Instant Web Services for Java Apps
By khookguy in forum Java SoftwareReplies: 0Last Post: 03-27-2009, 03:53 AM -
Web Services: Axis vs Metro vs Spring Web Services
By davidbaker29 in forum Advanced JavaReplies: 0Last Post: 01-28-2009, 11:20 AM -
Hi I am new to java web services
By ahalyapriya in forum New To JavaReplies: 1Last Post: 01-20-2009, 05:20 AM -
how to create java client to access web services running on https/ssl
By navneet1083 in forum NetBeansReplies: 0Last Post: 11-13-2007, 10:13 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks