You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Kumar <ba...@gmail.com> on 2005/06/21 13:06:28 UTC
Connection Refused Exception with wss4j
Hi All,
I am using AXIS 1.2 Final and wss4j and following the tutorial at
http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx.
However when I run my web service client I am getting below exception.
On the tomcat server side the request is not coming at all as I see it
in the tomacat logs however I can see a request soap message in tcp
monitor. Please suggest what am I missing here.
request soap message
---------------------------------------------------------------------------------------------------
POST /axis/services/stock-wss-01 HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2RC1
Host: 127.0.0.1:9999
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 932
<?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">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>wss4j</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">SjuuSmc3Jl0036x7hT7wbzdERss=</wsse:Password>
<wsse:Nonce>B2U8qdckyAwdb2wnBoGXUQ==</wsse:Nonce>
<wsu:Created
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2005-06-21T10:03:04Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<symbol xmlns="http://stock.samples">IBM</symbol>
</soapenv:Body>
</soapenv:Envelope>
exception
---------------------------------------------------------------------------------------------------
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection refused: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:hyddl0337
java.net.ConnectException: Connection refused: connect
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1077)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Sou
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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.parse(DeserializationContext.java:225)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
at org.apache.axis.client.Call.invokeEngine(Call.java:2737)
at org.apache.axis.client.Call.invoke(Call.java:2720)
at org.apache.axis.client.Call.invoke(Call.java:2396)
at org.apache.axis.client.Call.invoke(Call.java:2319)
at org.apache.axis.client.Call.invoke(Call.java:1776)
at samples.stock.client.StockWss01SoapBindingStub.getQuote(StockWss01SoapBindingStub.java:104)
Thanks & Regards,
Kumar.
Re: Connection Refused Exception with wss4j
Posted by Martin Stemplinger <ms...@gmx.de>.
Kumar schrieb am 06/21/2005 01:06 PM:
> Hi All,
>
> I am using AXIS 1.2 Final and wss4j and following the tutorial at
> http://weblogs.asp.net/jdanforth/archive/2005/01/16/354060.aspx.
> However when I run my web service client I am getting below exception.
> On the tomcat server side the request is not coming at all as I see it
> in the tomacat logs however I can see a request soap message in tcp
> monitor. Please suggest what am I missing here.
>
>
> request soap message
> ---------------------------------------------------------------------------------------------------
> POST /axis/services/stock-wss-01 HTTP/1.0
>
> Content-Type: text/xml; charset=utf-8
>
> Accept: application/soap+xml, application/dime, multipart/related, text/*
>
> User-Agent: Axis/1.2RC1
>
> Host: 127.0.0.1:9999
>
Hi Kumar,
just a quick idea: does your tomcat server listen on port 9999? The
default installation uses port 8080 so maybe something's wrong there.
Cheers
Martin