Groups > IBM > Studio400 > Re: Need help using WDSc's Create Web Service Wizard




Need help using WDSc's Create Web Service Wizard

Need help using WDSc's Create Web Service Wizard
Tue, 31 Jul 2007 16:28:56 EDT
Post Reply
Re: Need help using WDSc's Create Web Service Wizard
Wed, 01 Aug 2007 12:45:35 EDT
I created web service projects by using WDSC and PCML last year. There are about
4 steps to do this: 

  (1)Create dynamic web project by WDSC
  (2)Create Program call bean by iseries wizard
  (3)Create web service by WDSC
  (4)Create Web service client for testing

I assume that you got a error at step 2 -- java call RPG program. I had a
experience of getting an error when generating java class calling RPG. The error
I got was "special character found in parameter name in PCML". After
remove these special character in parameter in PCML, the error was gone. So you
can check this first.

If in your case, the name of parameters are fine then you may want to double
check your PCML file.  

My PCML file:

<pcml version="4.0">
   <!-- RPG program: JCCT001B  -->
   <!-- created: 2006-09-25-18.25.28 -->
   <!-- source: TVSRC/QRPGLESRC(JCCT001B) -->
   <!-- 10200 -->
   <struct name="@RETURNMSGDS">
      <data name="RTNCODE" type="char" init=" "
length="1" usage="inherit" />
      <data name="RTNNOMSG" type="zoned"
init="0" length="3" precision="0"
usage="inherit" />
      <data name="RTNMSG" type="char" init=" "
length="370" usage="inherit" />
   </struct>
   <!-- 10700 -->
   <struct name="JCCTDATA">
      <data name="RTNRCCD" type="char" init=" "
length="18" usage="inherit" />
      <data name="RTNTITL" type="char" init=" "
length="4" usage="inherit" />
      <data name="RTNFNME" type="char" init=" "
length="10" usage="inherit" />
      <data name="RTNLNME" type="char" init=" "
length="15" usage="inherit" />
      <data name="RTNHOME" type="char" init=" "
length="10" usage="inherit" />
      <data name="RTNSTNM" type="char" init=" "
length="50" usage="inherit" />
      <data name="RTNAPTN" type="char" init=" "
length="10" usage="inherit" />
      <data name="RTNCITY" type="char" init=" "
length="25" usage="inherit" />
      <data name="RTNPROV" type="char" init=" "
length="2" usage="inherit" />
      <data name="RTNPOST" type="char" init=" "
length="10" usage="inherit" />
      <data name="RTNPHONE" type="char" init="
" length="10" usage="inherit" />
      <data name="RTNSTATUS" type="char" init="
" length="14" usage="inherit" />
   </struct>
   <!-- 13800 -->
   <struct name="@IOPL">
      <data name="JPGMFLOW" type="char" init="
" length="3" usage="inherit" />
      <data name="JRCCD" type="char" init=" "
length="18" usage="inherit" />
      <data name="JCUSTINFO" type="struct"
struct="JCCTDATA" usage="inherit" />
      <data name="JRETURNMSGDS" type="struct"
struct="@RETURNMSGDS" usage="inherit" />
   </struct>
   <!-- 13200 -->
   <program name="JCCT001B"
path="/QSYS.LIB/TVPRD.LIB/JCCT001B.PGM">
      <data name="IOPL" type="struct"
struct="@IOPL" usage="inputoutput" />
   </program>
</pcml>

Hope this help

Post Reply
about | contact