Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Bolke de Bruin #1
Consuming a stateful axis webservice
Hello,
I am trying to consume a Apache Axis (java) webservice which uses the
SimpleSessionHandler with SOAP headers.
=== SOAP EXAMPLE ===
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:sessionID
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" xsi:type="soapenc:long"
xmlns:ns1="http://xml.apache.org/axis/session"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">2550409648178592911</ns1:sessionID>
</soapenv:Header>
soapenv:Body>
<pingResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<pingReturn xsi:type="xsd:boolean">true</pingReturn>
</pingResponse>
</soapenv:Body>
</soapenv:Envelope>
=== END EXAMPLE ===
Now I would like to consume this webservice with CFMX 6.1 plus the
hotfix for webservices applied.
Normally when consuming webservices from java, I do
setMaintainSession(true). Now I would like to do the equivalent for
CFMX. Please note that I did try to use:
ws = CreateObject("webservices","path to wsdl");
auth = ws.authorize(user,pass);
header = ws.getResponseHeader("sessionId");
(header = "NOT FOUND")
But this does not seem to work. I also tried to:
ws._setProperty(CreateObject("java","javax.xml.rpc .Stub").SESSION_MAINTAIN_PROPERTY,
JavaCast("boolean",1));
Any ideas?
Thanks in advance,
Bolke
Bolke de Bruin Guest
-
System.InvalidCastException in .Net client consuming Axis 1.1 java web service
Hi, I am developing a .Net client for Axis 1.1 web service written in java. The wsdl is generated using, java2WSDL with these switches:: -y WRAPPED... -
Consuming AXIS w/ headers from .NET
Hey All, I've been successful in authenticating to a particular rpc-based, AXIS web service by adding my own "BASIC Authorization" header to the... -
Consuming a Apache Axis WebService from .NET
perhaps you are sending the XML as a string? This is usually what gives you escaped angle brackets. (< and >) There are examples of how to do... -
Consuming a java webservice
Hi, I try to create a proxy class in VB.NET on a java webservice. I tried wsdl but it's seem impossible for me to do the work so... if anyone... -
Serialization problem, VB.Net Client consuming Java Axis Web Service
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object...



Reply With Quote

