hi all.
this is not exactly "on-topic" but I'm getting desperate.
It comes from an unresolved thread on [cfaussie] -  "Re: asmx
web service - not resolved"
(see the post for full info)

The bottom line is that we're being told it's a CF issue ("not
our problem" say them) - we can prove the .NET webservice can be
called from things other than CF but, following all the docs and
examples we can find, CF craps out (see SOAP, code and errors below).

We're using a test tool called soapScope which has it's own little
webserver built in. It's working fine.

Our brains trust (Scott Barnes, et al) have come up with an
interesting possibility

http://www.macromedia.com/support/jrun/ts/documents/tn17929.htm

which we're looking into at the moment

I'm also seeing a few forum posts that don't inspire conf idence: I
found this reciently that might be related (from a Feb 2004 post)
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=781179

<quote>The problem is that it seems our ability to set soap
headers is limited.</quote>

although we've applied the hot-fix that *should* cover this.

So either:
- our code is wrong (I'll gladly accept that as an answer)
- CF doesn't like .NET webservices
- the WS is broken but only for CFMX
- CF server config won't let it happen.

and when the webservice owner has got other (non CF) customers using
it fine and we can verify this, it doesn't look good for CF.

so has anyone sucessfully connected to a .NET webservice on HTTPS,
passing header data, calling a method and returning data? if so, a ny idea what we might be doing wrong?


cheers
barry.b



(note: the timestamp header is optional)

request (using soapScope):
===============================
<soap:Envelope
xmlns:s0="http://tempuri.org/stratapayMKII/eCommServices"


xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"


xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<s0:StrataPayAuthenticator>
<s0:authID>test</s0:authID>
<s0:password>test</s0:password>
<s0:timeStamp>2003-11-12</s0:timeStamp>
</s0:StrataPayAuthenticator>
</soap:Header>
<soap:Body>
<s0:checkPaym entComplex>
<s0:payID>test</s0:payID>
<s0:invoiceNumber>test</s0:invoiceNumber>
</s0:checkPaymentComplex>
</soap:Body>
</soap:Envelope>

response (using soapScope):
=================================

<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">
<soap:Header>
<StrataPayAuthenticator
xmlns="http://tempuri.org/stratapayMKII/eCommServices">


<authID>t est</authID>
<password>test</password>
<timeStamp />
</StrataPayAuthenticator>
</soap:Header>
<soap:Body>
<checkPaymentComplexResponse
xmlns="http://tempuri.org/stratapayMKII/eCommServices">



<checkPaymentComplexResult>0</checkPaymentComplexResult>
</checkPaymentComplexResponse>
</soap:Body>
</soap:Envelope>


CODE:
=======
<cfscript>
ws = CreateObject("webservice",
"https://www.stratapay.com.au/ecommservices.asmx?WSDL");


addRequestHeader(ws, "authID", "test");
addRequestHeader(ws, "password", "test");
addRequestHeader(ws, "timeStamp", "2003-11-12");
ans = ws.checkPaymentComplex("test", "test 123");
</c fscript>
<cfoutput>#ans#</cfoutput>
<cfdump var="#ws#">



ERROR (using CF code above)
the error has changed between this (below) and
"java.net.UnknownHostException"
========
Could not generate stub objects for web service invocation.

Name: https://www.stratapay.com.au/ecommservices.asmx?WSDL.

WSDL: https://www.stratapay.com.au/ecommservices.asmx?WSDL.

java.net.MalformedURLException: unknown protocol: https

It is recommended that you use a web browser to retrieve and examine
the requested WSDL document for correctness. If the requested WSDL
document can't be retrieved or it is dynamically generated, it is
likely that the target web service has programming errors.

The Error Occurred in C:\CFusionMX\wwwroot\webservice\testwscall.cfm:
line 15

13 :
14 : <cfscript>
15 : ws = CreateObject("webservice",
"https://www.stratapay.com.au/ecommservices.asmx?WSDL");


16 : addRequestHeader(ws, "authID", "test");
17 : addRequestHeader(ws, "password", "test");

--

__________________________________________________________
Sign-up for Ads Free at Mail.com
http://www.mail.com/?sr=signup

---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to