[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with empty SOAPAction and WAS 6.1
Hi Wolfgang,
Honestly, I don't understand what's going on here. Can you or Thomas
explain why you commented out that code?
Unless I'm misreading things, that code is only run if you pass *BLANKS
for the peSoapAction parameter. Why would you pass *BLANKS to it, and
then disable the code that runs when *BLANKS are supplied?
It seems to me that if you didn't pass the peSoapAction parameter at
all, or if you passed *OMIT, it would skip that whole section of code,
and never add the SoapAction: keyword to begin with -- without any
modifications to HTTPAPI.
Or is there a bug that's preventing that from working?
The problem with your code change... if one WANTS to pass an empty
SoapAction (I've seen web services that require it) you CAN'T, because
you've removed the code that sends the empty SoapAction! And I don't
see why removing that code was necessary.
Which routine are you calling to begin with? http_url_post?
http_url_post_xml? http_url_post_raw? http_url_post_stmf?
http_persist_post? Or one of the GET routines?
It would help a lot if we knew what your code is doing -- instead of
just knowing what you changed in HTTPAPI.
W. Baum wrote:
> I am using HTTPAPIR4 - a really great tool!
>
>
> However, if I am delivering an empty SOAPAction (the method is
> defined inside the SOAP xml file), I get the following error from WAS
> 6.1:
>
>
> > org.apache.axis2.AxisFault:
> java.lang.StringIndexOutOfBoundsException; nested exception is:
>
> java.lang.StringIndexOutOfBoundsException
>
>
> (With Tomcat, it works fine)
>
>
> I found a solution in changing the program source:
>
>
> 0440.00 c if %addr(peSOAPAction) <>
> *NULL
>
> 0441.00 c if peSOAPAction <>
> *blanks
>
> 0442.00 c eval wwReqChain = wwReqChain
> +
>
> 0443.00 c 'SOAPAction: '
> +%trimr(peSOAPAction)+
>
> 0444.00 c
> CRLF
>
> 0445.00 c
> else
>
> 0446.00 c*### eval wwReqChain = wwReqChain
> +
>
> 0447.00 c*### 'SOAPAction: ' +
> CRLF
>
> 0448.00 c
> endif
>
> 0449.00 c
> endif
>
>
> and
>
>
> 0655.00 c if %addr(peSOAPAction) <>
> *NULL
>
> 0656.00 c if peSOAPAction <>
> *blanks
>
> 0657.00 c eval wwReqChain = wwReqChain
> +
>
> 0658.00 c 'SOAPAction: '
> +%trimr(peSOAPAction)+
>
> 0659.00 c
> CRLF
>
> 0660.00 c
> else
>
> 0661.00 c*### eval wwReqChain = wwReqChain
> +
>
> 0662.00 c*### 'SOAPAction: ' +
> CRLF
>
> 0663.00 c
> endif
>
> 0664.00 c
> endif
>
>
>
>
> Question:
>
> do you think, this change might lead to an error somewhere else.
>
>
>
>
> Thanks
>
> Wolfgang
>
>
>
> ------------------------------------------------------------------------
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------