soap - SoapAction Issue under Java 1.3 -


This problem is bothering me for the day. Hopefully someone has come before this and has developed an alternate solution.

So I have developed an intermediate Java app, which invites a SOAP action during its execution Now, the behavior of this bit of code under 1.6 bit JDK is working well:

  // Hold a try SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance () inside the block; Soap Connection Connection = Soap Connection Factor. Security connection (); MessageFactory Message Factory = MessageFactory.newInstance (); SOAPMessage soapMsg = messageFactory.createMessage (); String Soap Action = getHeaderUrl () + "/" + + "\ r \ n"; Mime Headers Header = Soap Message GateMeMeHDers (); Headers.addHeader ("SOAPAction", Soap Action); // Review SOAP Action Header header_count = soapMsg.getMimeHeaders (). GetHeader ("SOAPAction") Length; Outside ("Soap actions with soap headers:"); If (header_count == 0) is excluded ("no SOAPActions defined."); ("SOAPAction [" + i + "] = \" "+ soapMsg for GetHeader (" SOAPAction ") [i] +" \ "") (Int i = 0; i & lt; header_count; i ++) .getMimeHeaders (). SOAPPart soapPart = soapMsg.getSOAPPart (); Stream Source S = New StreamSource (new stringorder); soapPart.setContent (s); soapMsg.saveChanges (); BitReReonOutOperputStreamRaky_Bytes = New BytereOutStream (); soapMsg .writeTo (req_bytes); string REQ = new string (req_bytes.toByteArray ()); SOAPMessage reply = connection.call (soap message, url);  

However, when I 1.3 or 1.4 Under this exact code, which is SOAD PU Excludes stacks, everything works / compiles / executes, except for the fact that the SOAPAction field header is empty oddly enough, when I check what the value of that header is The appropriate value is displayed (lines immediately after setting the header). However, when the wire goes on, the field is empty. Since this is the field which indicates the resource for the processor, I Ray messages are back at the door.

Has anyone encountered this problem before? If so, what are the possible solutions? (I definitely want to use other libraries.)

UPDATE:

The libraries present on my square path are as follows:

  • Xis (Researzer., Serializer., Exorcus Implezzer, XML-API).
  • Instrument
  • Axis <
  • Commons logging and discovery
  • Standard soap (activation.jpg, mail.jar, soap., Excursions.

  • Do you say that you are linking in SOAP libraries - which one, of course?

    I will not hurt to try a different SOAP stack like CXF or JX-WS, though I want to wonder if any of them supports Java 1.3.


    Comments

    Popular posts from this blog

    c++ - Linux and clipboard -

    What is expire header and how to achive them in ASP.NET and PHP? -

    sql server - How can I determine which of my SQL 2005 statistics are unused? -