Java SOAP

Hi,
Until now I have used the Apache-SOAP and I have decided to test the jax-rpc from sun.
I am a little confused, I don't understand why jax-rpc uses stub - skeletons ? (the apache implementation does not !) and if it uses, how could be theses services called by a not java application, ex. .NET application ? a wsdl file is not enough ?
Thanx in advice for your replies !
Gabi

HI Gabi,
When Apache-SOAP has developed there is no JAXRPC standard.
Do u know Apache-AXIS product? It is much better than Apache-SOAP which implements JAXRPC standard.
so, coming to your question..
why not a single wsdl is enough to work in non-java application.??
you know actually if you have wsdl file for a webservice.
JAXRPC generates stubs for that and u will invoke that stub for an operation and it internally generates soap message and sends to webservice and similary the response too...
so if it is non-java application, you will be having one application that generates wsdl file into some stubs.(Apache-AXIS is also in the implementation process for c++ users)... and u do the same proces...
That is actually what .net or any other product does...(one more is... GLUE)
I hope it could clarify your doubt..
Thanks
Ramana
Hi,
Until now I have used the Apache-SOAP and I have
decided to test the jax-rpc from sun.
I am a little confused, I don't understand why jax-rpc
uses stub - skeletons ? (the apache implementation
does not !) and if it uses, how could be theses
services called by a not java application, ex. .NET
application ? a wsdl file is not enough ?
Thanx in advice for your replies !
Gabi

Similar Messages

  • Access Java SOAP based web service using WS Security

    Hi,
    I need to call a Java based SOAP webservice which has message level security enabled with Binary Token.
    I have connected to the service using SOAPUI and below is the sample header for the same. I need to achieve the same in my Windows form application from where I am calling the SOAP service over https.
    I am not an expert in WS Security. Need some tips or sample code to achieve this.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.bombardier.com/aerospace/notification/V1.0"
    xmlns:v11="http://www.bombardier.com/aerospace/effectivity/V1.0">
       <soapenv:Header>
          <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
             <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
    ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-76146B887E7568491C142289201149318">MIIKZTCCCE2gAwIBAgIKXdo6EQACAAXqazANBgkqhkiG9w0BAQUFADB3MRMwEQYKCZImiZPyLGQBGRYDbmV0MRowGAYKCZImiZPyLGQBGRYKYm9tYmFyZGllcjEUMBIGCgmSJomT8ixkARkWBGFlcm8xFDASBgoJkiaJk/IsZAEZFgRhZXJvMRgwFgYDVQQDEw9BZXJvLUlzc3VpbmctQ0EwHhcNMTUwMTIzMTkzMzIyWhcNMTcwMTIyMTkzMzIyWjCBvzELMAkGA1UEBhMCQ0ExDzANBgNVBAgTBlF1ZWJlYzERMA8GA1UEBxMITW9udHJlYWwxGDAWBgNVBAoTD0JvbWJhcmRpZXIgSW5jLjESMBAGA1UECxMJQWVyb3NwYWNlMScwJQYDVQQDEx5jb2xsYWItZGV2LmFlcm8uYm9tYmFyZGllci5uZXQxNTAzBgkqhkiG9w0BCQEWJm10bF9pdF9vcHNfd2luZG93c0BhZXJvLmJvbWJhcmRpZXIuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzlzvsKg9LVifnEtxq947BXIcMV14ivIOvBgcoTdH6cw44ZUErp8MCSVBZnzJCmaRl4Qb1zUBrIjJk0h5omQPbFTUcpE84oHfvlJzNLknCVirks94RAvqtQFl0RgCl6EKiT3yNNncSI1OjPlL1wmebtghTyyRH3mqixWn2L43AF114nH/uIm5zozxCCIqW4biwx7PaHbuT6Kj3UzmarTXoGCDE8mbwUfCaQowaNWSCphU9BIqXUE2sW0FzNQnyjg0Z64FvSI07fJXCxb9URw61uQ3M5HCj8OqR5yQsiDuAnmw1AIccaoEBZu5yIhcY0xMVoNOKo3901xVEExBjbFJSwIDAQABo4IFqDCCBaQwCwYDVR0PBAQDAgWgMIICCwYDVR0RBIICAjCCAf6CHmNvbGxhYi1kZXYuYWVyby5ib21iYXJkaWVyLm5ldIIkY3Jhd2wtY29sbGFiLWRldi5hZXJvLmJvbWJhcmRpZXIubmV0giJhZG0tY29sbGFiLWRldi5hZXJvLmJvbWJhcmRpZXIubmV0gh5teXNpdGUtZGV2LmFlcm8uYm9tYmFyZGllci5uZXSCImFkbS1teXNpdGUtZGV2LmFlcm8uYm9tYmFyZGllci5uZXSCJGNyYXdsLW15c2l0ZS1kZXYuYWVyby5ib21iYXJkaWVyLm5ldIIiYWRtLWVudHNydi1kZXYuYWVyby5ib21iYXJkaWVyLm5ldIIiTVRMV1dNU1M2MDEuY2EuYWVyby5ib21iYXJkaWVyLm5ldIIiTVRMV1dNU1M2MDIuY2EuYWVyby5ib21iYXJkaWVyLm5ldIIiTVRMV1dNU1M2MDMuY2EuYWVyby5ib21iYXJkaWVyLm5ldIIlc2VhcmNoZmFzdC1kZXYuY2EuYWVyby5ib21iYXJkaWVyLm5ldIIpc2VhcmNoZmFzdC1hZG0tZGV2LmNhLmFlcm8uYm9tYmFyZGllci5uZXSCI210bHdhc21zcDYwMS5jYS5hZXJvLmJvbWJhcmRpZXIubmV0giFjbWlzc3AtZGV2LmNhLmFlcm8uYm9tYmFyZGllci5uZXQwHQYDVR0OBBYEFDa9eetNyQfJSvGWMqLM6PUY5Pe/MB8GA1UdIwQYMBaAFPcL/75Iad8EnXpbXm/8o/81NQHJMIIBYgYDVR0fBIIBWTCCAVUwggFRoIIBTaCCAUmGgc1sZGFwOi8vL0NOPUFlcm8tSXNzdWluZy1DQSxDTj1NVExXSVBLSTAwMixDTj1DRFAsQ049UHVibGljJTIwS2V5JTIwU2VydmljZXMsQ049U2VydmljZXMsQ049Q29uZmlndXJhdGlvbixEQz1hZXJvLERDPWFlcm8sREM9Ym9tYmFyZGllcixEQz1uZXQ/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVjdENsYXNzPWNSTERpc3RyaWJ1dGlvblBvaW50hkNodHRwOi8vbXRsd2lwa2kwMDMuYWVyby5hZXJvLmJvbWJhcmRpZXIubmV0L3BraS9BZXJvLUlzc3VpbmctQ0EuY3JshjJodHRwOi8vY2RwLmFlcm8uYm9tYmFyZGllci5jb20vQWVyby1Jc3N1aW5nLUNBLmNybDCCAW0GCCsGAQUFBwEBBIIBXzCCAVswgcEGCCsGAQUFBzAChoG0bGRhcDovLy9DTj1BZXJvLUlzc3VpbmctQ0EsQ049QUlBLENOPVB1YmxpYyUyMEtleSUyMFNlcnZpY2VzLENOPVNlcnZpY2VzLENOPUNvbmZpZ3VyYXRpb24sREM9YWVybyxEQz1hZXJvLERDPWJvbWJhcmRpZXIsREM9bmV0P2NBQ2VydGlmaWNhdGU/YmFzZT9vYmplY3RDbGFzcz1jZXJ0aWZpY2F0aW9uQXV0aG9yaXR5MFIGCCsGAQUFBzAChkZodHRwOi8vbXRsd2lwa2kwMDMuYWVyby5hZXJvLmJvbWJhcmRpZXIubmV0L3BraS9BZXJvLUlzc3VpbmctQ0EoMikuY3J0MEEGCCsGAQUFBzAChjVodHRwOi8vY2RwLmFlcm8uYm9tYmFyZGllci5jb20vQWVyby1Jc3N1aW5nLUNBKDIpLmNydDA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiFoPNlhYL3Xob1lTKCsPMIguTeGxOD/oINhsufMAIBZAIBDTATBgNVHSUEDDAKBggrBgEFBQcDATAbBgkrBgEEAYI3FQoEDjAMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBBQUAA4ICAQCtFw4FKpzNr8gpnpHHJvgjUfe7FbXvzuf8qENJQA+5KJjD6rqeSGpDJcvSwiFblZobFswFb7OABrxfpvDnmDbBfvozHPhAWBnmISz0t2ydb7R/SY1cl8NihamCPrtVN/azVDVqvj1kHkrVRM18BGSFowqGixMFQr4rDgB75214FN69a85AnxV5O5ip+U9g/JdW2qRSGcfUd1np2QActllDimc+33rp/nXIaoXjRlXhkm+WxCt3Ca5OgwnVm3a4Ceiljj+1i5+8XV2zngv6eq4HlrBg0sFPaHWdjrIGcNyaWW0h0dPQUuv4Gm3zKDkQ3AQSC3cV5qCqmh6fCaCsI3us2kSJjHMZa+OSDLI7K01pDP85TieHeoONBo8mRKsOQ0e1FGXH2BkbXSN1DgfJ1IzddaBbSsnjR5gNrRMmZJnCXnluT8Gmwyv9EKjMit6yt0sWwrADd5ZIjYUnxnrkgfXpPY2kqK2gOl12IHjFK6d5vUsGTlIv9H3OmtCWVBHpR125C0CZvU987z3u9Gv4Jiuv/LpDuv1bNuqNHsQfSqSYsjEreGIP+DapzhMOefiv+kN4nLj3Owk4VdQm9+dxekwaS7HFwAQGOVik877mXxmjRhwxtZPW0ZrWs3fZ2z90Ppki4cGN/rtaLGz+WwicrPt1B34296kQkkIolWtiGjkpnQ==</wsse:BinarySecurityToken>
             <ds:Signature Id="SIG-76146B887E7568491C142289201149421" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                <ds:SignedInfo>
                   <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                      <ec:InclusiveNamespaces PrefixList="soapenv v1 v11" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                   </ds:CanonicalizationMethod>
                   <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                   <ds:Reference URI="#id-76146B887E7568491C14228915193694">
                      <ds:Transforms>
                         <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                            <ec:InclusiveNamespaces PrefixList="v1 v11" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                         </ds:Transform>
                      </ds:Transforms>
                      <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                      <ds:DigestValue>3OlmMDNX7kDCNz4cRIZD+O/2xdA=</ds:DigestValue>
                   </ds:Reference>
                </ds:SignedInfo>
                <ds:SignatureValue>mfeQ+wTS5eMpaU7tmrAZeG9GBLegQFe35fuHRsDXBJfq1Kcd1jRwgpIR+iSIymXGzF3ToJZzCOnE
    MdW+UWdi8WAQOqw6YopJg82Tb2RJpQJADAzxbbLD2hOn1GLdXuLxtV040UsiumGi9kaKk4BaD2gSdW9Q
    EHwbrbQReo1bN8kNEJhFSWalhquPqD3WVK5+6A==</ds:SignatureValue>
                <ds:KeyInfo Id="KI-76146B887E7568491C142289201149319">
    <wsse:SecurityTokenReference wsu:Id="STR-76146B887E7568491C142289201149320">
                      <wsse:Reference URI="#X509-76146B887E7568491C142289201149318" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
                   </wsse:SecurityTokenReference>
                </ds:KeyInfo>
             </ds:Signature>
          </wsse:Security>
       </soapenv:Header>

    Hi,
    The following articles would be helpful:
    .net call WS-Security enabled web service (created in java)
    http://stackoverflow.com/questions/2138129/net-call-ws-security-enabled-web-service-created-in-java
    WS-Security Protocol with .NET – A Overview
    http://www.c-sharpcorner.com/UploadFile/mahesha/WSSecurityProtocol11232005052243AM/WSSecurityProtocol.aspx
    An introduction to Web Service Security using WSE - Part I
    http://www.codeproject.com/Articles/7062/An-introduction-to-Web-Service-Security-using-WSE
    As this question is not relate to SharePoint, I suggest you post it to a suitable Forum, you will get more help and confirmed answers from there.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Java SOAP and PHP server

    HI all, I have the follow problem:
    I have created a SOAP server with PHP. The client connection with PHP and with generated local classes for Java, with java.apache.axis.wsdl.WSDL2Java, is working very well and I don't have problems with this.
    But now I try to use my API with the normal calls from JAVA with the direct Call without local classes:
    Here are any sniplets:
    My Method in the wsdl file:
    - <xsd:complexType name="MyMethodRequest">
    - <xsd:all>
    <xsd:element name="username" type="xsd:string" />
    <xsd:element name="password" type="xsd:string" />
    <xsd:element name="partnerid" type="xsd:int" />
    <xsd:element name="signkey" type="xsd:string" />
    </xsd:all>
    </xsd:complexType>
    - <operation name="MyMethod">
    <soap:operation soapAction="urn:MyURN#MyMethod" style="rpc" />
    - <input>
    <soap:body use="encoded" namespace="urn:MyURN" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    - <output>
    <soap:body use="encoded" namespace="urn:MyURN" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    The definition in the PHP file look like this:
    $server->wsdl->addComplexType(
    'MyMethodRequest',
    'complexType',
    'struct',
    'all',
    array(
    'username' => array('name' => 'username', 'type' => 'xsd:string'),
              'password' => array('name' => 'password', 'type' => 'xsd:string'),
              'partnerid' => array('name' => 'partnerid', 'type' => 'xsd:int'),
    'signkey' => array('name' => 'signkey', 'type' => 'xsd:string')
    The server function is recieving an array with all this paramethers:
    function MyFunktion($member)
    // do anything
    Also the Java code:
    String method = "MyMethod";
    Object[] member = new Object[] {username, password, partnerid, signkey};
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("urn:MyURN", method));
    call.setSOAPActionURI("urn:MyURN#MyMethod");
    call.setUseSOAPAction(true);
    call.addParameter( "member", XMLType.SOAP_ARRAY, ParameterMode.IN );
    call.setReturnType( XMLType.XSD_BOOLEAN );
    Object[] params = new Object[] {member};
    Boolean ret = (Boolean) call.invoke(params);
    System.err.print(" " + ret);
    System.err.println();
    I compile the class and when I start it, I don't send any data to the server, but why??? What do I made false? The server don't gives an error, but he dont recieve any data from me!
    Thanks for every help:-)
    Best Regards
    Nik

    Hi is there really noone who can help me? I need this so much:-)
    Please help me here:-)
    Thanks!
    Regards
    Nik

  • JAVA&SOAP:how to return a complex object( the object has an object within)

    Lets say my Complex object is :
    public class PersonWithAddress {
    private String name;
    private int ssn ;
    private Address add;
    PersonWithAddress() {
    name="Gagan Tandon" ;
    ssn =1111;
    add = new Address("1113","WestPlum Street");
    public String getName() {
    return name;
    public int getSSN() {
    return ssn;
    public Address getAddress() {
    return add;
    This complex object has Address object embedded in it.
    public class Address {
    private String house;
    private String street;
    public Address (String myHouse,String myStreet) {
    house = myHouse;
    street = myStreet;
    public String getHouse() {
    return house;
    public String getStreet() {
    return street;
    My deployment Descriptor is as following: check the mappings part.
    <isd:service xmlns:isd=
    "http://xml.apache.org/xml-soap/deployment"
    id="urn:xml-soap-person-demo">
    <isd:provider type="java"
    scope="Application"
    methods="getPersonWithAddress">
    <isd:java class="PersonServer"/>
    </isd:provider>
    <isd:faultListener>
    org.apache.soap.server.DOMFaultListener
    </isd:faultListener>
    <isd:mappings>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="urn:xml-soap-person-demo" qname="x:PersonWithAddress"
    javaType="PersonWithAddress"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="urn:xml-soap-person-demo" qname="x:Address"
    javaType="Address"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    </isd:mappings>
    </isd:service>
    And in my SOAPRPC code at client end calls the following: check the mappingregistry code...
    String serverHost = "http://localhost:8082/soap/servlet/rpcrouter";
    SOAPMappingRegistry smr = new SOAPMappingRegistry();
    Parameter p= null;
    try {
    System.out.println("here 0");
    Response r=null;
    Call c=new Call();
    Vector parameters = new Vector();
    System.out.println("here 1");
    c.setTargetObjectURI ("urn:xml-soap-person-demo");
    c.setMethodName ("getPersonWithAddress");
    System.out.println("here 3");
    c.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    // parameters.addElement (new Parameter("name", String.class, "Web Services Client", null));
    // c.setParams (parameters);
    c.setSOAPMappingRegistry(smr);
    BeanSerializer beanSer = new BeanSerializer();
    smr.mapTypes(Constants.NS_URI_SOAP_ENC,new QName("urn:xml-soap-person-demo","Address"),Address.class,beanSer,beanSer);
    smr.mapTypes(Constants.NS_URI_SOAP_ENC,new QName("urn:xml-soap-person-demo","PersonWithAddress"),PersonWithAddress.class,beanSer,beanSer);
    try
    System.out.println("here 4");
    r = c.invoke ( new URL(serverHost), "" );
    // org.apache.soap.SOAPException can be thrown
    catch ( Exception e )
    e.printStackTrace();
    // Check the response.
    if (r.generatedFault ()) {
    Fault f = r.getFault();
    System.out.println ("Error Occurred: ");
    System.out.println (" Fault Code = " + f.getFaultCode());
    System.out.println (" Fault String = " + f.getFaultString());
    // return f.getFaultString();
    // return new String("gagan");
    return null;
    else {
    System.out.println("here 5");
    p = r.getReturnValue();
    System.out.println("here 6");
    // System.out.println( (String)greeting.getValue() );
    System.out.println("SSN: " + ((PersonWithAddress)p.getValue()).getSSN());
    return (PersonWithAddress) p.getValue();
    catch( Exception e ){
    e.printStackTrace();
    // finally {
    // return null;// String("not OK");
    if (p==null)
    return null;
    else
    return (PersonWithAddress) p.getValue();
    When running this code..
    The following error is thrown.
    System.out.println("here 4") is printed.
    [SOAPException: faultCode=SOAP-ENV:Client; msg=Unable to instantiate 'PersonWithAddress': Class org.apache.soap.encoding.soapenc.BeanSerializer can not access a member of class PersonWithAddress with modifiers ""; targetException=java.lang.IllegalArgumentException: Unable to instantiate 'PersonWithAddress': Class org.apache.soap.encoding.soapenc.BeanSerializer can not access a member of class PersonWithAddress with modifiers ""]
    at org.apache.soap.rpc.Call.invoke(Call.java:294)
    at PersonClient.getPersonWithAddress(PersonClient.java:92)
    at PersonClient.<init>(PersonClient.java:11)
    at PersonClient.main(PersonClient.java:20)
    java.lang.NullPointerException
    at PersonClient.getPersonWithAddress(PersonClient.java:96)
    at PersonClient.<init>(PersonClient.java:11)
    at PersonClient.main(PersonClient.java:20)
    I am here 1
    Exception in thread "main" java.lang.NullPointerException
    at PersonClient.<init>(PersonClient.java:13)
    at PersonClient.main(PersonClient.java:20)
    What could be the problem..? Is there any info on net how could i pass complex objects of this type in Java through SOAP RPC.
    GAGAN

    Have you managed to sole the problem ? I have got similar one...
    [SOAPException: faultCode=SOAP-ENV:Client; msg=Unable to instantiate 'auction.common.Property': auction/common/Property]
         at proxy.soap.AuctionHistoryProxy.addAuctionProperty(AuctionHistoryProxy.java:515)
         at java.lang.reflect.Method.invoke(Native Method)
    (...)

  • Calling a web service from a Java SOAP RPC client behind a firewall

    Hi
    I've generated java stubs for a web service developed under Workshop. I have tested
    the service successfully when the web service is deployed on my "localhost" Weblogic7
    server.
    I have now deployed this service on a separate WL7 server outside our corporate
    firewall and have changed the IP address in the ServiceLocator to that of the
    new WL7 box.
    Now when I run the test client, I get the following error:
    java.net.NoRouteToHostException: Operation timed out: no further information
    Does anyone know what I need to do to fix this?
    Thanks

    I've solved this problem - setting up http.proxyHost system properties sorted it
    out.
    "Tim" <[email protected]> wrote:
    >
    Hi
    I've generated java stubs for a web service developed under Workshop.
    I have tested
    the service successfully when the web service is deployed on my "localhost"
    Weblogic7
    server.
    I have now deployed this service on a separate WL7 server outside our
    corporate
    firewall and have changed the IP address in the ServiceLocator to that
    of the
    new WL7 box.
    Now when I run the test client, I get the following error:
    java.net.NoRouteToHostException: Operation timed out: no further information
    Does anyone know what I need to do to fix this?
    Thanks

  • Resources for first java soap client/server endeavour?

    Hello community,
    Im looking for some good resources for setting up a soap server, on apache tomcat, to handle incoming soap messages and send a soap response to the client.
    Any links to examples/sample code are greatly appreciated. I am completely new to webservices.
    your help is appreciated, thank you.

    Christ, how did I mange to make those typos?
    You need a webserver to accept the requests, and something like Tomcat to run your web service. Since Tomcat has a webserver (doesn't it include Apache?) already, Tomcat is all you need, but it won't really care whether you send some XML using HTTP or HTML form data using HTTP. It's still HTTP.

  • SOAP and Java within an Application Package

    We are doing an integration with Oracle Content Server. We have successfully checked in reports by sending a SOAP with attachments message in the application package PSRF_REPORT_CREATE calling custom Java methods.
    All is well, until we try and receive the SOAP response, in which nothing happens. After we call the checkin.SendMessage (our java method to checkin a report), we use the following generic PeopleCode insert statement just to test if the next line of the code is executing...
    SQLExec("INSERT INTO UCM_CHECKINLOG VALUES (1234, 'test')");
    This does not update our database, and it looks as if it is not even executing. We have also tried logging to a test file, but this fails to run as well. If it is directly after our soap request, why would it not run? Is there something we need to do to tell the system to wait for the response before commencing?
    Any help would be much appreciated.

    Just to make sure I understand the question... You customized the PSRF_REPORT_CREATE.CreateReport PeopleCode by adding some Java (JavaObject, etc). Is checkin your custom Java object with SendMessage being a method of that object? Are you using a Java SOAP client, like Axis2, to communicate with the Oracle Content Server or are you using Integration Broker? Again, just to verify, you are calling a Java method called "SendMessage." You can tell this is executing because you can see changes in your Oracle Content Server. However, as far as you can tell, no statements after that statement are executing. Is this correct?

  • Facing problem to Use a custom Java class in UCCX

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Hi,
    We are using Communication manager 7.0.1 and UCCX version 7.0.1(Cisco Unified CCX Premium).  We are trying to call a Custom Java class file from UCCX scripting. We have followed the steps mentioned in the guide (How-To: Using a custom Java class in UCCX 5.x (SOAP Example)). See below link.
    http://www.avholloway.com/vtools/ipcc/custom-java/soap/
    After completed all the steps we have got the variable type SimpleSOAP at script but we did not found it to object constructors or object attributes (plz find the attached screenshots). We will appreciate if you plz guide us to solve the issue.
    Thanks
    Fakhrul
    LEADS Corporation Ltd.

    Hello, Fakhrul.
    I'm sorry to see you were not able to find the information or help you were looking for here in the Contact Center community forum.
    You may be able to find more help through the Cisco Developer Network.
    Also, you might want to consider engaging Cisco Advanced Services via your account team to assist with UCCX custom scripting.
    Thank you, and good luck.
    -Paulo

  • Testing SSL Connections, differences between ABAP and JAVA stacks

    Hello,
       I am trying to test an outbound SSL connection to a partner.   I already have multiple outbound connections to many partners, but this new one is causing an issue.   Our firewalls between the two sites are opened as required, I verified that I can telnet to the 443 port of their sever.   I then attempted to connect to their URL, via a Java SOAP message, and it is rejected.  Some kind of error regarding our handshake.
       In an attempt to troubleshoot the issue I entered their URL in SM59 as a HTTPS connection, tested it, it worked fine.   Which indicates to me that the ABAP side works fine.
       I do the same on the Java stack, via the SOA Manager: Destinations, and it fails.
    "Error during ping operation: Error while silently connecting org.w3c.www.protocol.http.Http.Eception: Peer sent alert: Alert Fatal: unexpected message"
      I was thinking that maybe the remote partner only allows specific types of SSL version connection, and the Java side is too low.  i.e. the partner only allows TLS v1, and we are attempting to use SSL v2.    Is there a place to set this on the Java side?  I know I can set inbound parameters on ICM via SMICM.
      Any help or assistance would be most appreciated.
    Thanks,
    Michael Montone

    Hi,
    I suggest that you verify if you use the same release of the SAP Cryptolib  for the ABAP and the Java stack.
    This could explain a difference of support for SSL or TLS.
    Regards,
    Olivier

  • How to use JAXB generated classes with SOAP

    hello,
    I have a library of JAXB generated classes for my web service. There is a Java class for each web method defined in my schema. For example, my getLocation method is mapped to GetLocation.class.
    However my web service is SOAP based, so I am having to manually strip off the SOAP elements to be able to unmarshall the getLocation xml to a GetLocation class.
    I am noticing a disconnect between JAXB and other Java SOAP and RPC libraries. Does anyone know how to create a JAXB class for SOAP Envelopes and Bodys? Does anyone have any ideas how to incorporate the existing Java web service libraries with JAXB?
    Thanks in advance.

    Have you found a method to integrate SAAJ and JAXB? Or
    is better to use SAAJ only ?If I had to choose I'd go with SAAJ. It seems to me that's theoretically possible to use JAXB classes with SAAJ but I imagine if it is possible it would be a big pain in the ass.

  • Principal Propagation with SOAP sender

    Hello
    I've already read some blogs and SAP help about configuring the principal propagation (PP), those blogs explains details about the configuration with SAP (ABAP and Java) system.
    However in my case I have the third party SOAP sender application. I jsut wonder how to configure or write the soap Java program. Basically 2 things need to be done for hte soap sender:
    1) Force the soap sender to send message along with a SAP assertion ticket
    2) Sign the assertion ticket with private key (Public key/certification will be installed in PI Java AE)
    I have no idea how step 1 works (Take Java soap client program as example)
    Once a private key / public key is generated, how to use it to sign the assertion ticket?
    Basically our soap sender could be from any platform (.net, java program, oracle, etc.), I need to know how to configure the soap sender for PP generally.
    Anybody configured PP for soap sender?
    Thank you so much

    Hi Jayson,
    With the amount of questions asked in one single question , i feel things are not clear at your end.
    i suggest you going through:
    Prinicipal propogation:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/808d3048-638c-2a10-35a6-faa48e50ad59
    Principal Propagation in SAP XI
    /people/alexander.bundschuh/blog/2007/01/16/principal-propagation-in-sap-xi
    Configuring adapters for principal propogation
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/cf9e199bf23e49e10000000a421937/frameset.htm
    Regards
    joel

  • SOAP Message

    Hi,
    I'm new to Java Web Services. I tried to create a soap mesg. but unable to connect to server, where the service is running.
    Here is the piece of code.
    MessageFactory msgFactory = MessageFactory.newInstance();     
    SOAPMessage mesg = msgFactory.createMessage();
    mesg.setProperty(SOAPMessage.WRITE_XML_DECLARATION, "true");
    mesg.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, "utf-8");
    SOAPEnvelope envelope = mesg.getSOAPPart().getEnvelope();
    envelope.setAttribute("xmlns:xsd","http://www.w3.org/2001/XMLSchema");
    envelope.setAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");
    envelope.setAttribute("soap:encodingStyle","http://schemas.xmlsoap.org/soap/encoding");
    String url = "http://192.168.4.214/dmwebservice/service1.asmx";
    SOAPBody body = envelope.getBody();               
    SOAPFactory soapFactory = SOAPFactory.newInstance();
    Name bodyName = soapFactory.createName("setBinaryData","xmlns", "http://tempuri.org/");
    SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
    SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance();
    SOAPConnection con = factory.createConnection();
    String url = "http://192.168.4.214/dmwebservice/service1.asmx";
    mesg.writeTo(System.out);
    //SOAPMessage response = con.call(mesg, new URL(url));
    SOAPMessage response = con.call(mesg, url);               
    response.writeTo(System.out);
    con.close();
    i'm calling the service method "setBinaryData" and the service is running at "http://192.168.4.214/dmwebservice/service1.asmx"
    please find the request and response of above sample. The server is not recognizing the HTTP Header SOAPAction. Can you please let me know how to set the "HTTP Header SOAPAction"?
    [java] **** request ****
    [java] <?xml version="1.0" encoding="utf-8"?>
    [java] <SOAP-ENV:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/so
    ap/encoding" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs
    d="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema
    -instance"><SOAP-ENV:Header/><SOAP-ENV:Body><xmlns:setBinaryData xmlns:xmlns="ht
    tp://tempuri.org/"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
    [java] **** response ****
    [java] <?xml version="1.0" encoding="utf-8"?>
    [java] <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
    " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3
    .org/2001/XMLSchema">
    [java] <soap:Body>
    [java] <soap:Fault>
    [java] <faultcode>soap:Client</faultcode>
    [java] <faultstring>System.Web.Services.Protocols.SoapException: Serv
    er did not recognize the value of HTTP Header SOAPAction: .
    [java] at System.Web.Services.Protocols.Soap11ServerProtocolHelper.Route
    Request()
    [java] at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    [java] at System.Web.Services.Protocols.ServerProtocol.SetContext(Type t
    ype, HttpContext context, HttpRequest request, HttpResponse response)
    [java] at System.Web.Services.Protocols.ServerProtocolFactory.Create(Typ
    e type, HttpContext context, HttpRequest request, HttpResponse response, Boolean
    & abortProcessing)</faultstring>
    [java] <detail />
    [java] </soap:Fault>
    [java] </soap:Body>
    Thanks in Advance.
    Subhani.

    Hi,
    Perhaps you can help.
    I've got a problem related to usage of SOAP in Java. I receive a file containing SOAP message with XML attachment. I store it on hard disk.
    Then I create a SOAP message as it is shown in source code below.
    When I try to get the attachment, the method doesn't return anything (the number of attachments is 0).
    If I pass to method createMessage value null instead of new MimeHeaders(), the result is the same.
    What can be the problem? How to solve it? Any idea?
    Looking forward any support.
    BR,
    rafikoko
    MessageFactory factory = MessageFactory.newInstance();
    SOAPMessage message = factory.createMessage(new MimeHeaders(), new FileInputStream(xmlFile));
    Iterator attachments = message.getAttachments();
    log4j.error("TEST:before while:"+message.countAttachments());
    while(attachments.hasNext()){
    log4j.error("TEST:while");
    Object finvoice = attachments.next();
    log4j.error("TEST:Finvoice:"+finvoice);
    }Below is my example soap message:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
    <SOAP-ENV:Header>
    <eb:MessageHeader xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
    SOAP-ENV:mustUnderstand="1" eb:id="20030222133003285">
        <eb:From>
           <eb:PartyId>FI9859292720000267</eb:PartyId>
           <eb:Role>Sender</eb:Role>
        </eb:From>
        <eb:From>
           <eb:PartyId>OKOYFIHH</eb:PartyId>
           <eb:Role>Intermediator</eb:Role>
        </eb:From>
        <eb:To>
           <eb:PartyId>FI3329501800008512</eb:PartyId>
           <eb:Role>Receiver</eb:Role>
        </eb:To>
        <eb:To>
           <eb:PartyId>NDEAFIHH</eb:PartyId>
           <eb:Role>Intermediator</eb:Role>
        </eb:To>
    <eb:CPAId>yoursandmycpa</eb:CPAId>
    <eb:ConversationId>nnnnn</eb:ConversationId>
    <eb:Service>Routing</eb:Service>
    <eb:Action>ProcessInvoice</eb:Action>
    <eb:MessageData>
         <eb:MessageId>1</eb:MessageId>
         <eb:Timestamp>2003-01-22T11:12:12+02</eb:Timestamp>
         <eb:RefToMessageId/>
    </eb:MessageData>
    </eb:MessageHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <eb:Manifest eb:id="Manifest" eb:version="2.0">
    <eb:Reference eb:id="Finvoice" xlink:href="20020209-133003">
    <eb:schema eb:location="http://www.pankkiyhdistys.fi/verkkolasku/finvoice/finvoice.xsd" eb:version="2.0"/>
    </eb:Reference>
    </eb:Manifest>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by Jussi Paasikallio (OKOBANK Group) -->
    <!--Sample XML file generated by XML Spy v4.2 U (http://www.xmlspy.com)-->
    <!DOCTYPE Finvoice SYSTEM "Finvoice.dtd">
    <?xml-stylesheet type="text/xsl" href="Finvoice.xsl"?>
    <!--Finvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\l\finvoice\Finvoice.xsd" Version="1.0"-->
    <Finvoice Version="1.0">
         <SellerPartyDetails>
              <SellerPartyIdentifier>0123456-7</SellerPartyIdentifier>
              <SellerOrganisationName>Pullin Kala Oy</SellerOrganisationName>
              <SellerOrganisationTaxCode>0123456-7</SellerOrganisationTaxCode>
              <SellerPostalAddressDetails>
                   <SellerStreetName>Haapatie 7</SellerStreetName>
                   <SellerTownName>Helsinki</SellerTownName>
                   <SellerPostCodeIdentifier>00100</SellerPostCodeIdentifier>
                   <CountryCode>FI</CountryCode>
                   <CountryName>FINLAND</CountryName>
                   <SellerPostOfficeBoxIdentifier>PL 302</SellerPostOfficeBoxIdentifier>
              </SellerPostalAddressDetails>
         </SellerPartyDetails>
         <SellerContactPersonName>Hanna Paananen</SellerContactPersonName>
         <SellerCommunicationDetails>
              <SellerPhoneNumberIdentifier>050-5432659</SellerPhoneNumberIdentifier>
              <SellerEmailaddressIdentifier>[email protected]</SellerEmailaddressIdentifier>
         </SellerCommunicationDetails>
         <SellerInformationDetails>
              <SellerHomeTownName>Helsinki</SellerHomeTownName>
              <SellerVatRegistrationText>Alv.Rek</SellerVatRegistrationText>
              <SellerVatRegistrationDate Format="CCYYMMDD">19990321</SellerVatRegistrationDate>
              <SellerPhoneNumber>(09) 542 1222</SellerPhoneNumber>
              <SellerFaxNumber>(09) 542 2221</SellerFaxNumber>
              <SellerCommonEmailaddressIdentifier>[email protected]</SellerCommonEmailaddressIdentifier>
              <SellerWebaddressIdentifier>www.pullinkala.fi</SellerWebaddressIdentifier>
              <SellerAccountDetails>
                   <SellerAccountID IdentificationSchemeName="IBAN">FI1234567890123456</SellerAccountID>
                   <SellerBic IdentificationSchemeName="BIC">OKOYFIHH</SellerBic>
              </SellerAccountDetails>
              <SellerAccountDetails>
                   <SellerAccountID IdentificationSchemeName="IBAN">FI1234567890123456</SellerAccountID>
                   <SellerBic IdentificationSchemeName="BIC">NDEAFIHH</SellerBic>
              </SellerAccountDetails>
         </SellerInformationDetails>
         <BuyerPartyDetails>
              <BuyerPartyIdentifier>CL12221</BuyerPartyIdentifier>
              <BuyerOrganisationName>Kalakauppa Vilkkunen</BuyerOrganisationName>
              <BuyerPostalAddressDetails>
                   <BuyerStreetName>Haapatie 1</BuyerStreetName>
                   <BuyerTownName>Helsinki</BuyerTownName>
                   <BuyerPostCodeIdentifier>00211</BuyerPostCodeIdentifier>
                   <CountryCode/>
                   <CountryName/>
                   <BuyerPostOfficeBoxIdentifier/>
              </BuyerPostalAddressDetails>
         </BuyerPartyDetails>
         <BuyerContactPersonName>Maija Vikkunen</BuyerContactPersonName>
         <BuyerCommunicationDetails>
              <BuyerPhoneNumberIdentifier>(09)221222</BuyerPhoneNumberIdentifier>
              <BuyerEmailaddressIdentifier>[email protected]</BuyerEmailaddressIdentifier>
         </BuyerCommunicationDetails>
         <InvoiceDetails>
              <InvoiceTypeCode>INV01</InvoiceTypeCode>
              <InvoiceTypeText>LASKU</InvoiceTypeText>
              <OriginCode>Origin</OriginCode>
              <InvoiceNumber>1/2002</InvoiceNumber>
              <InvoiceDate Format="CCYYMMDD">20020612</InvoiceDate>
              <SellerReferenceIdentifier>212</SellerReferenceIdentifier>
              <OrderIdentifier>TI0988</OrderIdentifier>
              <InvoiceTotalVatExcludedAmount AmountCurrencyIdentifier="EUR">100,00</InvoiceTotalVatExcludedAmount>
              <InvoiceTotalVatAmount AmountCurrencyIdentifier="EUR">22,00</InvoiceTotalVatAmount>
              <InvoiceTotalVatIncludedAmount AmountCurrencyIdentifier="EUR">122,00</InvoiceTotalVatIncludedAmount>
              <ShortProposedAccountIdentifier>9922</ShortProposedAccountIdentifier>
              <NormalProposedAccountIdentifier>8822</NormalProposedAccountIdentifier>
              <AccountDimensionText>4500</AccountDimensionText>
              <VatSpecificationDetails>
                   <VatBaseAmount AmountCurrencyIdentifier="EUR">100,00</VatBaseAmount>
                   <VatRatePercent>22</VatRatePercent>
                   <VatRateAmount AmountCurrencyIdentifier="EUR">22,00</VatRateAmount>
              </VatSpecificationDetails>
              <PaymentTermsDetails>
                   <PaymentTermsFreeText>14 p�iv�� netto</PaymentTermsFreeText>
                   <PaymentOverDueFineDetails>
                        <PaymentOverDueFineFreeText>Yliaikakorko 16%</PaymentOverDueFineFreeText>
                        <PaymentOverDueFinePercent>16</PaymentOverDueFinePercent>
                   </PaymentOverDueFineDetails>
              </PaymentTermsDetails>
         </InvoiceDetails>
         <PaymentStatusDetails>
              <PaymentStatusCode>NOTPAID</PaymentStatusCode>
         </PaymentStatusDetails>
         <VirtualBankBarcode>250003210002229000122000000000000000862074102062800009</VirtualBankBarcode>
         <InvoiceRow>
              <ArticleIdentifier>123213123332123</ArticleIdentifier>
              <ArticleName>TUURA</ArticleName>
              <BuyerArticleIdentifier>1232321232332</BuyerArticleIdentifier>
              <DeliveredQuantity QuantityUnitCode="Kpl">10</DeliveredQuantity>
              <OrderedQuantity QuantityUnitCode="Kpl">10</OrderedQuantity>
              <UnitPriceAmount AmountCurrencyIdentifier="EUR" UnitPriceUnitCode="e/kpl">5,00</UnitPriceAmount>
              <RowIdentifier>221</RowIdentifier>
              <RowIdentifierDate Format="CCYYMMDD">20020611</RowIdentifierDate>
              <RowDeliveryDate Format="CCYYMMDD">20020615</RowDeliveryDate>
              <RowShortProposedAccountIdentifier>9922</RowShortProposedAccountIdentifier>
              <RowNormalProposedAccountIdentifier>8822</RowNormalProposedAccountIdentifier>
              <RowAccountDimensionText>4500</RowAccountDimensionText>
              <RowFreeText>Tuurat myyd��n varsien kanssa.</RowFreeText>
              <RowDiscountPercent>0</RowDiscountPercent>
              <RowVatRatePercent>22</RowVatRatePercent>
              <RowVatAmount AmountCurrencyIdentifier="EUR">11,00</RowVatAmount>
              <RowVatExcludedAmount AmountCurrencyIdentifier="EUR">50,00</RowVatExcludedAmount>
              <RowAmount AmountCurrencyIdentifier="EUR">61,00</RowAmount>
         </InvoiceRow>
         <InvoiceRow>
              <ArticleIdentifier>123213123332123</ArticleIdentifier>
              <ArticleName>HUOLLON VUOSIMAKSU</ArticleName>
              <StartDate Format="CCYYMMDDHHMMSS">20020611000000</StartDate>
              <EndDate Format="CCYYMMDDHHMMSS">2003062011000000</EndDate>
              <RowShortProposedAccountIdentifier>9923</RowShortProposedAccountIdentifier>
              <RowNormalProposedAccountIdentifier>8823</RowNormalProposedAccountIdentifier>
              <RowAccountDimensionText>4500</RowAccountDimensionText>
              <RowVatRatePercent>22</RowVatRatePercent>
              <RowVatAmount AmountCurrencyIdentifier="EUR">11,00</RowVatAmount>
              <RowVatExcludedAmount AmountCurrencyIdentifier="EUR">50,00</RowVatExcludedAmount>
              <RowAmount AmountCurrencyIdentifier="EUR">61,00</RowAmount>
         </InvoiceRow>
         <EpiDetails>
              <EpiIdentificationDetails>
                   <EpiDate Format="CCYYMMDD">20020612</EpiDate>
                   <EpiReference>1</EpiReference>
              </EpiIdentificationDetails>
              <EpiPartyDetails>
                   <EpiBfiPartyDetails>
                        <EpiBfiIdentifier IdentificationSchemeName="BIC">OKOYFIHH</EpiBfiIdentifier>
                   </EpiBfiPartyDetails>
                   <EpiBeneficiaryPartyDetails>
                        <EpiNameAddressDetails>Pullin Kala</EpiNameAddressDetails>
                        <EpiAccountID IdentificationSchemeName="IBAN">FI1234567890123456</EpiAccountID>
                   </EpiBeneficiaryPartyDetails>
              </EpiPartyDetails>
              <EpiPaymentInstructionDetails>
                   <EpiRemittanceInfoIdentifier>8620741</EpiRemittanceInfoIdentifier>
                   <EpiInstructedAmount AmountCurrencyIdentifier="EUR">122,00</EpiInstructedAmount>
                   <EpiCharge ChargeOption="SHA">SHA</EpiCharge>
                   <EpiDateOptionDate Format="CCYYMMDD">20020628</EpiDateOptionDate>
              </EpiPaymentInstructionDetails>
         </EpiDetails>
    </Finvoice>

  • Intercepting SOAP Requests at HTTP Level

    We have a WLS Web Service in which we want to compress the body of the HTTP
    message containing the SOAP request (envelope). The compression will be done
    using gzip and including a standard
    Content-Encoding: gzip
    HTTP request header.
    This makes it necessary to intercept the HTTP/SOAP request on the server
    side to decompress the body of the HTTP message before WLS SOAP processing
    begins.
    Doing this in the SOAP Handler Chain is too late; by this time, WLS will
    have already attempted to parse the HTTP message and create (bind) the
    appropriate Java SOAP object structure (SOAPMessage, SOAPPart, etc.).
    Question: Is there a way to intercept the HTTP POST request containing the
    SOAP message early enough (e.g., as it comes off the wire) so that the body
    of the HTTP message can be decompressed before WLS parses it and creates
    the SOAP objects to pass to the Handler Chain?
    Thanks for any help and insight you can provide.
    John

    I've been dealing with a similar problem and it actually doesn't appear that WLS has bound everything by the SOAP Handler level. I have been working on inserting encryption into the WLS's SOAP handlers. I was getting nasty error messages when I was trying to encrypt the contents of the message body. At first I thought this was due to WLS trying to bind passed variables. This was mostly because of the invalid schema representation of a variable type x combined with a java.lang.NumberFormatException. However, if I encrypt 1 level lower i.e. the contents of the operations WLS becomes happy so I don't know what to think anymore. If you have any insites into why it would give me the error message it is giving me I would like to know. I hope my post has furthered the understanding of your problem in some way.
    more information on what I did is below:
    complete client request
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header>
    </env:Header>
    <env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <m:getBalance xmlns:m="http://example.com" Id="encryptMyContents">
    <intVal xsi:type="xsd:int">1</intVal>
    <string xsi:type="xsd:string">blah blah blah</string>
    </m:getBalance>
    </env:Body>
    </env:Envelope>
    general form of encrypted client request
    <env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <m:getBalance xmlns:m="http://example.com" Id="encryptMyContents">
    <EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"
    Id="encryptedDataID"
    Type="http://www.w3.org/2001/04/xmlenc#Content">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
    <CipherData>
    <CipherValue>long encrypted stuff</CipherValue>
    </CipherData>
    </EncryptedData>
    </m:getBalance>
    </env:Body>
    The above encrypting the contents of the operation
    works with WLS
    The below encrypting the contents of the body
    does NOT work with WLS
    The target of the encrytion is moved
    <env:Body Id="encryptMyContents" ...
    general form of encrypted server response (I suppose I should have copied server response above but you can get the picture without it)
    <env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <m:getBalance xmlns:m="http://example.com" Id="encryptMyContents">
    <EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"
    Id="encryptedDataID"
    Type="http://www.w3.org/2001/04/xmlenc#Content">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
    <CipherData>
    <CipherValue>long encrypted stuff</CipherValue>
    </CipherData>
    </EncryptedData>
    </m:getBalance>
    </env:Body>
    I get my nasty error message...
    Note this error message is if I simply use the invoke button that weblogic creates for me
    In this case the what happens is
    - the request handler recieves an unencrypted client request does nothing to the request
    - the web service generates its response
    - the response handler encrypts body contents of the response
    - the handler finishes
    - WLS throws the exception below
    NOTE: after this point there is nothing but the error message.
    Failed to invoke service:
    weblogic.xml.schema.types.IllegalLexicalValueException: "9HhL2AdpL5d4B2KOWrTCtJ2Q6Ybu+6..." is not a valid lexical representation of {http://www.w3.org/2001/XMLSchema}double - java.lang.NumberFormatException: For input string: "9HhL2AdpL5d4B2KOWrTCtJ2Q6Ybu+6/AftWxi/Kv752g4P9r30FhOXGgrCimrkd6 v09FsLsPdQagJQiETnMSVwVw1Kfw34fITv/S36Et+4SQ1t5+TpZwypuVz8bkyBFy KdSzrAD9ONxYERR1y6fy3m1XPZD5IUECmAKI/QaymtZjAyzQkA3U33sB+V3n5ZqS QcYcCj/9JwheIlBPkKL/JIPn6yqg6VBMp15a8CHYY5W/+aRpSMaDeDFkXOgBIelX wQumJ47tKXbHrhHio+MmeoMrlf0A1oU71j8ZPOBkvvfg3ty56OV9HBULOr+FtpnP dIlgJA3CxyX6L3W6ElP82biZwJumqL6ABDKNvyTJn8kfCkYUPjIynv8iiOHPUPEE ssHqVy+PI1tqoXHL6llVcb2a9gL4WNPXEC8EQnIlOay1t+nVrCRAG8PbzqIFApzd" at weblogic.xml.schema.types.XSDDouble.naiveConvertXml(XSDDouble.java:182) at weblogic.xml.schema.types.XSDDouble.convertXml(XSDDouble.java:153) at weblogic.xml.schema.binding.internal.builtin.XSDDoubleDeserializer.getObjectFromContent(XSDDoubleDeserializer.java:15) at weblogic.xml.schema.binding.internal.builtin.XSDSimpleTypeDeserializer.processContent(XSDSimpleTypeDeserializer.java:173) at weblogic.xml.schema.binding.internal.builtin.XSDSimpleTypeDeserializer.processContent(XSDSimpleTypeDeserializer.java:161) at weblogic.xml.schema.binding.internal.builtin.XSDSimpleTypeDeserializer.deserialize(XSDSimpleTypeDeserializer.java:101) at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:428) at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:328) at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:387) at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:487) at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:329) at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147) at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473) at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439) at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:359) at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:314) at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:361) at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:280) at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:157) at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:280) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3022) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288) Caused by: java.lang.NumberFormatException: For input string: "9HhL2AdpL5d4B2KOWrTCtJ2Q6Ybu+6/AftWxi/Kv752g4P9r30FhOXGgrCimrkd6 v09FsLsPdQagJQiETnMSVwVw1Kfw34fITv/S36Et+4SQ1t5+TpZwypuVz8bkyBFy KdSzrAD9ONxYERR1y6fy3m1XPZD5IUECmAKI/QaymtZjAyzQkA3U33sB+V3n5ZqS QcYcCj/9JwheIlBPkKL/JIPn6yqg6VBMp15a8CHYY5W/+aRpSMaDeDFkXOgBIelX wQumJ47tKXbHrhHio+MmeoMrlf0A1oU71j8ZPOBkvvfg3ty56OV9HBULOr+FtpnP dIlgJA3CxyX6L3W6ElP82biZwJumqL6ABDKNvyTJn8kfCkYUPjIynv8iiOHPUPEE ssHqVy+PI1tqoXHL6llVcb2a9gL4WNPXEC8EQnIlOay1t+nVrCRAG8PbzqIFApzd" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224) at java.lang.Double.parseDouble(Double.java:482) at weblogic.xml.schema.types.XSDDouble.naiveConvertXml(XSDDouble.java:173) at weblogic.xml.schema.types.XSDDouble.convertXml(XSDDouble.java:153) at weblogic.xml.schema.binding.internal.builtin.XSDDoubleDeserializer.getObjectFromContent(XSDDoubleDeserializer.java:15) at weblogic.xml.schema.binding.internal.builtin.XSDSimpleTypeDeserializer.processContent(XSDSimpleTypeDeserializer.java:173) at weblogic.xml.schema.binding.internal.builtin.XSDSimpleTypeDeserializer.processContent(XSDSimpleTypeDeserializer.java:161) at weblogic.xml.schema.binding.internal.builtin.XSDSimpleTypeDeserializer.deserialize(XSDSimpleTypeDeserializer.java:101) at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:428) at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:328) at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:387) at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:487) at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:329) at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147) at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473) at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439) at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:359) at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:314) at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:361) at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:280) at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:157) at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:280) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3022) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)

  • Soap connectivity to third interfaces

    Hi,
    I am connecting to a third party interfaces through java code, i am doing it by using java SOAP.
    I am in intranet and internet environment,
    so i am setting the proxy and again reseting it after getting the response from the site.
    I am passing a message(i.e, xml data) and String url(i.e the site to which i want to connect) as parameter
    It,
    SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance();
    SOAPConnection con = factory.createConnection();
    request = createMessage(pMessage);
    System.setProperty("http.proxySet", "true");
    System.setProperty("http.proxyHost", "123.123.12.12");
    System.setProperty("http.proxyPort", "8081");
    System.setProperty("http.proxyUser", "myloginid");
    System.setProperty("http.proxyPassword", "mypassword");
    //At this site the system throw error
    soapResponse = con.call(request, MYURI);
    I am getting following errors
    java.net.ConnectException: Operation timed out: connect
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed
    Can anybody help?

    Nope. Your network administrator is the one to help you.

  • Basic Soap requests in Flex (without WSDL)

    Hi,
    I have just started to use Flex, so everything is really new
    to me.
    I am meant to write a Flex application that requests data
    from a Java SOAP service which is currently written by a colleague.
    We do not have a WSDL specification (yet), as the content
    format is not yet agreed on and might be extended frequently (Also,
    the Service will only ever be used by my flex app)
    Unfortunately I could only find SOAP tutorials for Flex that
    use WSDL.
    It would be great if anyone could give me some ideas on how
    to get started on using SOAP within Flex without the WSDL part.
    Thanks a lot in advance.

    Yes I think your app will perform better using remote objects, there's 
    a great app to test that named Census you can get it and do your own 
    tests or play with it on James Ward's blog.
    Sincerely,
    Michael
    El 22/04/2009, a las 12:24, ijmarrero <[email protected]> escribió:
    >
    We are developing a middle sized application using Flex and Axis 
    Webservices. On the client side we AS code generated using Flex 
    Builder 3.0 and the WSDL. On the server side we have Java  code 
    generated with Axis 1.3 using the same WSDL. The problems occurs 
    when the server sends a 290Kb response to the Client. Flex spends 10 
    seconds (obtained from mx.rpc.* log facility) in deserialing this 
    SOAP message. My question is:
    >
    ¿Could I improve the performance of the deserialization?
    >
    Due to the fact that this is an unaceptable delay and that we have a 
    code of 70.000 lines ¿what choices we have? ¿Should we use remote ob
    jects?
    >
    Thank you
    >

Maybe you are looking for

  • IPod not recognized in iTunes after update/restore

    I was prompted by a message (don't remember the exact verbage) in iTunes to restore my iPod. It appeared to download and install an iPod update. Then when iTunes restarted, the iPod was no longer recognized by iTunes. The iPod still charges and iTune

  • "Application Not Found" CS4 installation error

    Problem: "Application Not Found" CS4 installation error Some Adobe Creative Suite CS4 Production Premium distribution disks issue an "Application not found" error while loading Disk 2 due to an error in the Autorun.inf file. Does your Autorun.inf for

  • Saved pdf forms empty in Reader, filled in Preview

    Today I was informed that pdf forms I've filled and saved/emailed with Preview are empty when viewed with Reader 9 (Win or Mac). If the recipient sends the form back to me, Preview shows the form just as I've filled it. Reader 9 on my MBP also shows

  • Help Required 3rd Nano in three months

    My third Nano in 3 months has just died with the same fault. It can only be used when attached to a power source. It seems to lose the power software for the battery and when you put it on charge it just constantly charges and never finishes. Attach

  • Make nslookup read /etc/hosts file

    Dear, OS: OUL5x64 my nslookup resolve the name thru dns server. question : how to make nslookup resolves name through /etc/hosts file. i do have /etc/resolv.conf and /etc/nsswitch.conf file here is my nsswitch.conf /etc/nsswitch.conf #hosts: db files