aspose file tools
The moose likes Web Services and the fly likes exception while trying Axis Deployment Tutorial Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "exception while trying Axis Deployment Tutorial" Watch "exception while trying Axis Deployment Tutorial" New topic
Author

exception while trying Axis Deployment Tutorial

gaurav abbi
Ranch Hand

Joined: Jan 05, 2007
Posts: 108
hi all,
i'm following a tutorial
wss4j
to get some knowledge about wss4j.jar.
i've already installed axis on my tomcat and able to call the various services.
but when i follow the procedure mentioned here and try to invoke the client
i get the following error.

E:\gaurav\official\devlopment\webServices\wss4jLearning>java samples.stock.clien
t.StockServiceClient IBM
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.io.IOException: Server returned HTTP response code: 502 for U
RL: http://services.xmethods.net/axis/getQuote?s=IBM
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:gabbi-dt

java.io.IOException: Server returned HTTP response code: 502 for URL: http://ser
vices.xmethods.net/axis/getQuote?s=IBM
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
ationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
nt(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
EndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
tandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.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 samples.stock.client.StockWss01SoapBindingStub.getQuote(StockWss01Soa
pBindingStub.java:106)
at samples.stock.client.StockServiceClient.main(StockServiceClient.java:
31)

i tried googling for this, but not able to find anything relevant.

please tell me if its some configuration issue as it seems to me or there's something else is wrong.

Adding to this, i also want to understand the way wss4j works in making web services secure as i'm going to use it in my project. any urls,tutorials or book names will be really helpful as i'm not able to get a clear picture of this.
[ August 21, 2007: Message edited by: gaurav abbi ]

thanks,<br />gaurav abbi
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12266
    
    1
The code 502 seems to be SC_BAD_GATEWAY - that says to me that either your address was bad or the service was not running and your SOAP message never got interpreted. I suspect all those client side exceptions were due to not getting a SOAP message back from the server.

The best thing to do now is use TCPMON or something similar to capture the actual text sent and retrieved - that usually results in an "AHA" moment.

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: exception while trying Axis Deployment Tutorial
 
Similar Threads
Problem to run Axis Apache with BEA WL 6.1
The AXIS engine could not find a target service (Axis/BEA WL 6.1)
help apache axis
Currency Web Service almost there
error while sending a user name token from client