× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



David --

Here's what I get:

C:\temp>java com.ibm.as400.data.ProgramCallDocument -serialize utility
com.ibm.as400.data.PcmlSpecificationException: File 'utility' contains PCML
specification errors.
Attribute, entrypoint="procedure1", only allowed with pcml version="2.0" or
later.  Processing <program> element "program1".
Attribute, entrypoint="procedure2", only allowed with pcml version="2.0" or
later.  Processing <program> element "program2".
2 errors detected parsing pcml document.
A PCML specification error occurred.

If you change your version attribute in the pcml element to 2.0, all should
work as you expect.

HTH,
Gary

> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx 
> [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
> Sent: Thursday, May 15, 2003 9:47 AM
> To: java400-l@xxxxxxxxxxxx
> Subject: PCML problem
> 
> 
> I'm trying to create PCM to call a procedure in a service 
> program, but I'm running into problems ...
> 
> When I construct the PCML document, I get an error
> "java.util.MissingResourceException: PCML document source 
> 'com.midrange.model.UTILITY' cannot be found."  The code that 
> tries to construct the document goes something like...
> 
> -------------------------------
> private static final String IMIDE_pcml = 
> "'com.midrange.model.UTILITY";
> 
> ProgramCallDocument pcml = new ProgramCallDocument(as400, IMIDE_pcml);
> -------------------------------
> 
> I thought that maybe it's having a problem converting the 
> PCML into a object, so I tried to serialize the PCML outside 
> of my application to see if it would use that ...
> 
> Unforunately, when I run the serializer, I get "A PCML 
> specification error occured."
> 
> The command I'm running to serialize is: java.exe -classpath 
> "jt400.jar;xerces.jar" com.ibm.as400.data.ProgramCallDocument 
> -serialize com.midrange.model.UTILITY
> 
> Not very useful, if you ask me.
> 
> Here's the PCML I'm trying to use / serialize ...
> 
> ---------------------------------------
> <pcml version="1.0">
> 
>   <struct name="struct1">
>     <data name="field1"             type="char"   length="10"/>
>     <data name="field2"             type="char"   length="10"/>
>     <data name="field3"             type="char"   length="8" />
>     <data name="field4"          type="char"   length="10"/>
>     <data name="field5"       type="char"   length="10"/>
>     <data name="field6"           type="char"   length="200"/>
>   </struct>
> 
>   <struct name="struct2">
>     <data name="field7"          type="char"   length="10"/>
>     <data name="field8"   type="char"   length="50"/>
>     <data name="field9"          type="char"   length="10"/>
>     <data name="fielda"      type="char"   length="30"/>
>     <data name="fieldb"           type="char"   length="10"/>
>     <data name="fieldc"       type="char"   length="30"/>
>     <data name="fieldd"           type="char"   length="10"/>
>     <data name="fielde"       type="char"   length="30"/>
>     <data name="fieldf"       type="char"   length="4" />
>     <data name="fieldg"           type="char"   length="10"/>
>   </struct>
> 
>   <program name="program1" path="/QSYS.LIB/LIBL.LIB/UTILITIES.srvpgm"
> entrypoint="procedure1">
>     <data name="structa"           type="struct"   struct="struct1"
> usage="input"/>
>     <data name="structb"       type="struct"   struct="struct2"
> usage="output"/>
>     <data name="fieldh"             type="packed"   length="10"
> precision="0" usage="output"/>
>   </program>
> 
>   <struct name="struct3">
>     <data name="fieldi"             type="char"   length="10"/>
>     <data name="fieldj"           type="packed" length="7" 
> precision="0"/>
>     <data name="fieldk"      type="char"   length="30"/>
>   </struct>
> 
>   <program name="program2" path="/QSYS.LIB/LIBL.LIB/UTILITIES.srvpgm"
> entrypoint="procedure2">
>     <data name="fieldl"        type="char"     length="5"
> usage="input"/>
>     <data name="fieldm"             type="packed"   length="7"
> precision="0" usage="input"/>
>     <data name="structc"        type="struct"   struct="struct3"
> usage="output"/>
>   </program>
> 
> </pcml>
> ---------------------------------------
> 
> Any suggestions?
> 
> Thanks!
> 
> david
> 
> -- 
> David Gibbs
> david@xxxxxxxxxxxx
> 
> 
> _______________________________________________
> This is the Java Programming on and around the iSeries / 
> AS400 (JAVA400-L) mailing list To post a message email: 
> JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change 
> list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
> 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.