Hi folk, this is my first time on this forum, just registered...............

Abstract: first time I'm dealing with web service, soap, appurtenances, so forgive me ignorance absolute. (Also for the bad english)

I have a wsdl on a web server institutional written in java that does NOT contain the client and the various calls no header, but it always requires, for each call.

Problem: I create the client quietly with the endpoint, I connect to the web server responds to me and I read all the parameters (which I do not need anything) of the server. (So ​​I created the tunnel)

Just try to make a call using any of the wsdl, type wsdl.result res = wsdl.getvalore (parameters), I always get errors due to the lack of the header in the message, for example: Private key is not in the X.509 certificate. (But NOT required private key to feel the support of the web service) or No Security Header.

Following the example of the soap message in XML. For the part BODY no problem, but how do I add the header? Thanks to everyone who can help me out. Regards.
 


http://schemas.xmlsoap.org/soap/envelope/">
 
  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" soapenv:mustUnderstand="1">
   
    2014-09-09T08:23:50.725Z
    2014-09-09T08:28:50.725Z
   

   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-00000000000000000000000000000000">qtgOKG92iPHI/XLXGxFmg6Vnqmdg=
   http://www.w3.org/2000/09/xmldsig#" Id="SIG-4">
    
     http://www.w3.org/2001/10/xml-exc-c14n#">
      http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="soapenv"/>
     

     http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
     
      
       http://www.w3.org/2001/10/xml-exc-c14n#">
        http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="wsse soapenv"/>
       

      

      http://www.w3.org/2000/09/xmldsig#sha1"/>
      hK3A/dZmQfIGDx9p7/8zV31iWDQ=
     

    

    JlWXCRS6NEz9pl5gD9PBedQj6OMxBDXkLhIwGjncl4IsC1DzPoIVEJmIp/D679ba+pi692gvGpLn
    
     
      http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
     

    

   

  

 

 
  www.aaa.regione.it/Schemas/AAA_WEB/SERVICE/">
   
    001001
    PPPTTT00P01R000T
    Rrr000000
   

   
    gredfgggjnbhtdybvvhghggvvbvb=
    2014-09-09T10:23:522+0200
    ABC
    ZQJzbirixuhvfa8NtoQa
    PIPPO
    20.03
   

   001001001001001
  

 

​