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?



  • [no subject] Loftus, Seamus

Reply via email to