cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web AS 6.20 J2EE-Engine ProxyGenerator

Former Member
0 Kudos
293

Hello,

has anyone used the ProxyGenerator delivered with SAP WAS 6.20 J2EE-Engine successfully?

When I did not succeed in generating proxies for my own webservice, I tried to generate a proxy for the calc example (calc.wsdl). Invoking the ProxyGenerator as described below, I got the following exception

Invocation: java com.inqmy.lib.wsdl.ProxyGenerator calc.wsdl .

<#### stacktrace ####>

Exception in thread "main" java.lang.Exception:  Name space error !<<<>>> never

mapped

        at com.inqmy.lib.xml.util.NamespaceContainer.demapPrefix(NamespaceContai

ner.java:35)

        at com.inqmy.lib.xml.parser.handlers.NormalizeDocHandler.endPrefixMappin

g(NormalizeDocHandler.java:290)

        at com.inqmy.lib.xml.parser.XMLParser.endPrefixMapping(XMLParser.java:25

28)

        at com.inqmy.lib.xml.parser.handlers.NamespaceHandler.levelDown(Namespac

eHandler.java:181)

        at com.inqmy.lib.xml.parser.XMLParser.scanEndTag(XMLParser.java:1738)

        at com.inqmy.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1657)

        at com.inqmy.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2164)

        at com.inqmy.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1654)

        at com.inqmy.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2164)

        at com.inqmy.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1654)

        at com.inqmy.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2164)

        at com.inqmy.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1654)

        at com.inqmy.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2503)

        at com.inqmy.lib.xml.parser.XMLParser.parse0(XMLParser.java:139)

        at com.inqmy.lib.xml.parser.AbstractXMLParser.parseAndCatchException(Abs

tractXMLParser.java:110)

        at com.inqmy.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.ja

va:137)

        at com.inqmy.lib.wsdl.ProxyGenerator.generateProxy(ProxyGenerator.java:9

3)

        at com.inqmy.lib.wsdl.ProxyGenerator.main(ProxyGenerator.java:453)

</#### stacktrace ####>

Did anyone of you run into similar problems? Is there a known solution to this problem?

Best regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

thanks a lot. I updated my J2EE Engine and now the tool works...

bye

iavor_petkov
Explorer
0 Kudos

Hi Christian,

Did you already find a solution to your problem ?

Can you tell us the version of the Engine you are using - check <server>/managers/version.txt ?

I checked SP16 from ServiceMarketplace (patchlevel 61200.20)

and received the following :

D:\Test\SDN-SoapDispatcher>set CLASSPATH=.;\lib\activation.jar;.\lib\inqmy-lib.jar;.\lib\inqmysoap.jar;.\lib\inqmyxml.ja

r;.\lib\mail.jar

D:\Test\SDN-SoapDispatcher>java -cp .;\lib\activation.jar;.\lib\inqmy-lib.jar;.\lib\inqmysoap.jar;.\lib\inqmyxml.jar;.\l

ib\mail.jar com.inqmy.lib.wsdl.ProxyGenerator ./calc.wsdl . -c

InQMy SOAP Proxy Generator

  • Generating Proxy from:./calc.wsdl

  • To directory:.

D:\Test\SDN-SoapDispatcher\.

javac -classpath "D:\Test\SDN-SoapDispatcher;.;\lib\activation.jar;.\lib\inqmy-lib.jar;.\lib\inqmysoap.jar;.\lib\inqmyxm

l.jar;.\lib\mail.jar;" -d "D:\Test\SDN-SoapDispatcher" D:\Test\SDN-SoapDispatcher\calcservice\*.java

  • Done

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

it seems you are trying to use the proxies for web services? This was not the general purpose, as it is of course possible to do so. BUT: The fact that the generator tells you something about WSDL during runtime does not mean this is generating anything web service like. It just uses this description to generate a java proxy.

Oh, just got it! You are trying to make a proxy for beans?  This generator only delivers proxies for BAPI's! You have to run it from a batch that should be in Windows Start menu after installation.

There is a description how to use this stuff in sapnet (will be soon here too). Go to alias /webas and drill down to HowTo's.

All others_: This is 6.20!

Regards,

Benny