Thomas,
Unable to figure it out. I have this lines of code on my WS_OPER base
program.
select;
when (depth = 1
and
name = 'LTLRateBlockResponse'
and
namespace = '[1]http://webservices.smc.com');
if (MultiRef_isReference(attrs));
MultiRef_put(
attrs
: XMLSAXParser_getUserData()
: depth
: namespace
: name
: path
: XMLSAXParser_getStartCallback()
: XMLSAXParser_getEndCallback()
: *omit
: %addr(currentItem)
: %size(currentItem)
);
endif;
return;
when (depth = 2
and
name = 'LTLRateBlockResponse'
and
namespace = '[2]http://webservices.smc.com');
XMLSAXParser_delegateElementProcessing(
%addr(currentItem.LTLRateBlockResponse)
: %paddr('tns_LTLRateBlockResponseStart')
: %paddr('tns_LTLRateBlockResponseEnd')
);
return;
endsl;
Also when i Open the DS of this LTLRateBlockResponse its shows me lots
of array till 128 n so on. I have attach the Debug log which generte by
the Program.
Kindly let me know how can i Debug the MODULE WS000101. So i can check
by debugging whats actually going on.
Thanks
On Fri, Sep 28, 2012 at 2:59 AM, <[3]thomas.raddatz@xxxxxx> wrote:
Hussain,
Most of the time there is a namespace problem when the result of
the
web service does not show up in the response data structure.
Please
check that like this:
1) Locate an element which has a value in the debug log.
2) Search the operation module (Based on WS_OPER) for the
statement
where the UnMarshaller copies the element to the data structure.
In SEU type: F ''anyType'
Please notice the two preceding single quotes!
select;
when (g_isAXIS_2095
and
name = 'CityStateToZipCodeResult'
and
namespace = '[4]http://www.ripedev.com/')
or (not g_isAXIS_2095
and
name = 'anyType'
and
namespace = '[5]http://www.ripedev.com/');
if (not Value_isNil(attrs));
UnMarshaller_setFieldIdentifier(name: path: x);
UnMarshaller_toStringV6(
%addr(currentItem)
: %addr(currentItem: *DATA)
: %size(currentItem)
: itemValue.pData
: itemValue.size);
endif;
Add a breakpoint to the 'when' statement and when the name of the
element matches the exected value, compare the namespace value
with the
generated namespace literal. If they do not mtach, send the wsdl
file
along with the debug log to me.
The next update of WSDL2RPG (coming this weekend) generates a new
*_Redirectresponse_toStmf() procedure. With that procedure you
can save
the response to a stream file for later use like this:
// Redirect response to stream file
if (stmf <> '');
ZipCodeSoap_RedirectResponse_toStmf(stmf: REPLACE_YES);
endif;
// Set the paramater values of the request message
// of the web service.
// assign values here
parameters.City = 'Boston';
parameters.State = 'MA';
// Now let's call the web service.
CityStateToZipCodeResponse =
ZipCodeSoap_CityStateToZipCode(
parameters:
errText);
See the attached sample that has been slightly patched to compile
for
WSDL2RPG v1.15.1. (Added WSDL_AUTH_NTLM to member ZIPCODE).
Thomas.
[6]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 27.09.2012
20:03:39:
> Von: [7]hsn752@xxxxxxxxx
> An: [8]ftpapi@xxxxxxxxxxxxxxxxxxxxxx,
> Datum: 28.09.2012 05:01
> Betreff: Unable to Get the WSDL2RPG Values.
> Gesendet von: [9]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>
> Hello,
>
> I have generte the stubs using WSDL2RPG V1.5 and its test
program.
All the
> program and Service program run fine. But When i try to fetch
the
Data
> Value from the DS its shows me Blank even in the Debug log the
Response is
> coming with the proper values.
>
> Can any body suggest the possible solution. Also i need to know
Can i
> directly write the Response to some Data file which i receive
from
the WEB
> SERVICE.
>
> Urgent Help needed.
>
> *Thanks & Regards*
>
> *Hussain Nooruddin*
>
> *[10]hussain@xxxxxxxxxxxxxx* <[11]hussain@xxxxxxxxxxxxxx>**
>
> *[12]+1.630.225.0510 Ext : 420*
>
--------------------------------------------------------------------
---
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> [1][13]http://www.scottklement.com/mailman/listinfo/ftpapi
>
--------------------------------------------------------------------
---
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for
the
intended recipient only. Access, disclosure, copying,
distribution, or
reliance on any of it by anyone else is prohibited and may be a
criminal
offence. Please delete if obtained in error and email
confirmation to
the sender.
References
1. [14]http://www.scottklement.com/mailman/listinfo/ftpapi
--------------------------------------------------------------------
---
This is the FTPAPI mailing list. To unsubscribe, please go to:
[15]http://www.scottklement.com/mailman/listinfo/ftpapi
--------------------------------------------------------------------
---
References
1. http://webservices.smc.com/
2. http://webservices.smc.com/
3. mailto:thomas.raddatz@xxxxxx
4. http://www.ripedev.com/
5. http://www.ripedev.com/'
6. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
7. mailto:hsn752@xxxxxxxxx
8. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
9. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
10. mailto:hussain@xxxxxxxxxxxxxx
11. mailto:hussain@xxxxxxxxxxxxxx
12. tel:%2B1.630.225.0510
13. http://www.scottklement.com/mailman/listinfo/ftpapi
14. http://www.scottklement.com/mailman/listinfo/ftpapi
15. 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
-----------------------------------------------------------------------