You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pushpalanka Jayawardhana <pu...@gmail.com> on 2011/11/03 06:00:22 UTC
Re:
Hi Loftus, Seamus,
I have once seen this kind of error with the cause that the response was
coming as a html page due to a mistake in giving the URL.
It may be helpful if you check the URL again.
*
*
On Thu, Nov 3, 2011 at 12:52 AM, Loftus, Seamus
<Se...@state.vt.us>wrote:
> I believe I have everything installed correctly, but I clearly do not.
> I c= ontinue to get a Transport error: 415 Unsupported Media Type, when
> trying t= o call the stub of my code. I am trying to set up a cert like
> so:
>
> <parameter name=3D"OutflowSecurity">
> <action>
> <user>user</user>
> <items>Signature</items>
> <signaturePropFile>client.properties</signaturePropFile>
> <passwordCallbackClass>
> net.myproject.axis2.PWCallbackHandler</pass=
> wordCallbackClass>
> <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
> <signatureParts>{Element}{
> http://www.net.myproject/forms/xsd/MySchema=
> .xsd}myProject;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body
> </si=
> gnatureParts>
> </action>
> </parameter>
>
> My client properties file looks like this:
>
> org.apache.ws.security.crypto.provider=3Dorg.apache.ws.security.components.=
> crypto.Merlin
> org.apache.ws.security.crypto.merlin.keystore.type=3Dpkcs12
> org.apache.ws.security.crypto.merlin.keystore.password=3Dpw
> org.apache.ws.security.crypto.merlin.file=3DsecureCert.p12
>
> This is the stack trace:
>
>
> org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported Media
> T= ype
> at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSe=
> nder.java:310)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSende=
> r.java:194)
> at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:=
> 75)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.write=
> MessageWithCommons(CommonsHTTPTransportSender.java:404)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invok=
> e(CommonsHTTPTransportSender.java:231)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutIn=
> AxisOperation.java:406)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImp=
> l(OutInAxisOperation.java:229)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.=
> java:165)
> at net.myproject.webservices.LoginStub.login(LoginStub.java:200)
>
>
> Any ideas?
>
>
>
>
--
*Regards,*
Pushpalanka Jayawardhana,
Sri Lanka.
Blog : http://pushpalankajaya.blogspot.com/
RE: Re:
Posted by "Loftus, Seamus" <Se...@state.vt.us>.
This is the response I am receiving from the server I am connecting into:
2011/11/08 08:52:45:695 EST [DEBUG] header - << "HTTP/1.1 415 Unsupported Media Type[\r][\n]"
2011/11/08 08:52:45:695 EST [DEBUG] header - << "HTTP/1.1 415 Unsupported Media Type[\r][\n]"
2011/11/08 08:52:45:695 EST [DEBUG] header - << "Date: Tue, 08 Nov 2011 13:52:45 GMT[\r][\n]"
2011/11/08 08:52:45:695 EST [DEBUG] header - << "Content-Type: text/xml; charset="utf-8"[\r][\n]"
2011/11/08 08:52:45:695 EST [DEBUG] header - << "SOAPAction: "http://www.somewebsite.com/egg/thewebservice/Login"[\r][\n]"
2011/11/08 08:52:45:711 EST [DEBUG] header - << "User-Agent: Axis2[\r][\n]"
2011/11/08 08:52:45:711 EST [DEBUG] header - << "Via: 1.1 www.somewebsite.com (Alteon iSD-SSL/5.1.5.4)[\r][\n]"
2011/11/08 08:52:45:711 EST [DEBUG] header - << "X-SSL: decrypted=true, ciphers="TLSv1/SSLv3 RC4-MD5"[\r][\n]"
2011/11/08 08:52:45:711 EST [DEBUG] header - << "Content-Length: 668[\r][\n]"
2011/11/08 08:52:45:711 EST [DEBUG] header - << "Via: 1.1 www.somewebsite.com (Alteon iSD-SSL/5.1.5.4)[\r][\n]"
2011/11/08 08:52:45:711 EST [DEBUG] header - << "[\r][\n]"
2011/11/08 08:52:45:711 EST [DEBUG] content - << "<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">[\r][\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << " <soap:Body>[\r][\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << " <soap:Fault>[\r][\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << " <faultcode>soap:Server</faultcode>[\r][\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << " <faultstring>IDP Rule 'MeF Invalid HTTP Message' aborted processing.[\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << "No matching request filter.</faultstring>[\r][\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << " <detail>[\r][\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << " <fs:Detail xmlns:fs="http://www.forumsystems.com/2004/04/soap-fault-detail">[\r][\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << " <fs:SystemName>egg</fs:SystemName>[\r][\n]"
2011/11/08 08:52:45:727 EST [DEBUG] content - << " <fs:User></fs:User>[\r][\n]"
2011/11/08 08:52:45:742 EST [DEBUG] content - << " <fs:Policy>EGG-A2A-MSI</fs:Policy>[\r][\n]"
2011/11/08 08:52:45:742 EST [DEBUG] content - << " <fs:TaskList></fs:TaskList>[\r][\n]"
2011/11/08 08:52:45:742 EST [DEBUG] content - << " <fs:Task></fs:Task>[\r][\n]"
2011/11/08 08:52:45:742 EST [DEBUG] content - << " </fs:Detail>[\r][\n]"
2011/11/08 08:52:45:742 EST [DEBUG] content - << " </detail>[\r][\n]"
2011/11/08 08:52:45:742 EST [DEBUG] content - << " </soap:Fault>[\r][\n]"
2011/11/08 08:52:45:742 EST [DEBUG] content - << " </soap:Body>[\r][\n]"
2011/11/08 08:52:45:742 EST [DEBUG] content - << "</soap:Envelope>[\r][\n]"
My content type is text/xml. My encoding is UTF-8 as required.
From: Pushpalanka Jayawardhana [mailto:pushpalankajaya@gmail.com]
Sent: Thursday, November 03, 2011 1:00 AM
To: java-user@axis.apache.org
Subject: Re:
Hi Loftus, Seamus,
I have once seen this kind of error with the cause that the response was coming as a html page due to a mistake in giving the URL.
It may be helpful if you check the URL again.
On Thu, Nov 3, 2011 at 12:52 AM, Loftus, Seamus <Se...@state.vt.us>> wrote:
I believe I have everything installed correctly, but I clearly do not. I c= ontinue to get a Transport error: 415 Unsupported Media Type, when trying t= o call the stub of my code. I am trying to set up a cert like so:
<parameter name=3D"OutflowSecurity">
<action>
<user>user</user>
<items>Signature</items>
<signaturePropFile>client.properties</signaturePropFile>
<passwordCallbackClass> net.myproject.axis2.PWCallbackHandler</pass=
wordCallbackClass>
<signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
<signatureParts>{Element}{http://www.net.myproject/forms/xsd/MySchema=
.xsd}myProject;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body<http://schemas.xmlsoap.org/soap/envelope/%7DBody></si=
gnatureParts>
</action>
</parameter>
My client properties file looks like this:
org.apache.ws.security.crypto.provider=3Dorg.apache.ws.security.components.=
crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=3Dpkcs12
org.apache.ws.security.crypto.merlin.keystore.password=3Dpw
org.apache.ws.security.crypto.merlin.file=3DsecureCert.p12
This is the stack trace:
org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported Media T= ype
at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSe=
nder.java:310)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSende=
r.java:194)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:=
75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.write=
MessageWithCommons(CommonsHTTPTransportSender.java:404)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invok=
e(CommonsHTTPTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutIn=
AxisOperation.java:406)
at org.apache.axis2.description.OutInAxisOperationClient.executeImp=
l(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.=
java:165)
at net.myproject.webservices.LoginStub.login(LoginStub.java:200)
Any ideas?
--
Regards,
Pushpalanka Jayawardhana,
Sri Lanka.
Blog : http://pushpalankajaya.blogspot.com/
RE: Re:
Posted by "Loftus, Seamus" <Se...@state.vt.us>.
I verified that the URL is correct. It has to be something with the certificate.
From: Pushpalanka Jayawardhana [mailto:pushpalankajaya@gmail.com]
Sent: Thursday, November 03, 2011 1:00 AM
To: java-user@axis.apache.org
Subject: Re:
Hi Loftus, Seamus,
I have once seen this kind of error with the cause that the response was coming as a html page due to a mistake in giving the URL.
It may be helpful if you check the URL again.
On Thu, Nov 3, 2011 at 12:52 AM, Loftus, Seamus <Se...@state.vt.us>> wrote:
I believe I have everything installed correctly, but I clearly do not. I c= ontinue to get a Transport error: 415 Unsupported Media Type, when trying t= o call the stub of my code. I am trying to set up a cert like so:
<parameter name=3D"OutflowSecurity">
<action>
<user>user</user>
<items>Signature</items>
<signaturePropFile>client.properties</signaturePropFile>
<passwordCallbackClass> net.myproject.axis2.PWCallbackHandler</pass=
wordCallbackClass>
<signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
<signatureParts>{Element}{http://www.net.myproject/forms/xsd/MySchema=
.xsd}myProject;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body<http://schemas.xmlsoap.org/soap/envelope/%7DBody></si=
gnatureParts>
</action>
</parameter>
My client properties file looks like this:
org.apache.ws.security.crypto.provider=3Dorg.apache.ws.security.components.=
crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=3Dpkcs12
org.apache.ws.security.crypto.merlin.keystore.password=3Dpw
org.apache.ws.security.crypto.merlin.file=3DsecureCert.p12
This is the stack trace:
org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported Media T= ype
at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSe=
nder.java:310)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSende=
r.java:194)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:=
75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.write=
MessageWithCommons(CommonsHTTPTransportSender.java:404)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invok=
e(CommonsHTTPTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutIn=
AxisOperation.java:406)
at org.apache.axis2.description.OutInAxisOperationClient.executeImp=
l(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.=
java:165)
at net.myproject.webservices.LoginStub.login(LoginStub.java:200)
Any ideas?
--
Regards,
Pushpalanka Jayawardhana,
Sri Lanka.
Blog : http://pushpalankajaya.blogspot.com/