cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Java Proxy

Former Member
0 Kudos

I am having some problems generating a particular java proxy... I've developed several

others without trouble...I suspect the issue is in the imported WSDL.

I have imported an existing WSDL into the "External Definitions" section of

Interface Objects in the Integration Builder ...no problems and the

"Messages" tab properly shows one message. I also checked the rendered

WSDL text on the "WSDL" tab and all looks fine. Note that this WSDL comes from a working web service that is running on a JBoss Applicatino server.

Next I create a Message Interface using this imported WSDL to define my

"Input" message - since this is Async, there is no corresponding "Response"

message - all this goes fine.

Finally, I right mouse click on the Message Interface to generate the Proxy

and at the last step after selecting the MI I get the following message from SAP:

Unable to generate proxies Construct <part type ="....">

not supported (path: <portType http://ram.proxy.test:B2B_JAVA_PROXY_GenerateStatements_MI>;

<message http://ws.ferg.com/:GenerateStatements_getStatementInfo>)

The raw WSDL from the External Definitions "WSDL" tab is:

<?xml version="1.0" encoding="ISO-8859-1"?>

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://ws.ferg.com/">

<wsdl:types>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://ws.ferg.com/types" targetNamespace="http://ws.ferg.com/types">

<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />

<xsd:complexType name="ArrayOfstring">

<xsd:complexContent>

<xsd:restriction base="soap11enc:Array">

<xsd:attribute ref="soap11enc:arrayType" wsdl:arrayType="string[]" />

</xsd:restriction>

</xsd:complexContent>

</xsd:complexType>

</xsd:schema>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://ws.ferg.com/types">

<xsd:complexType name="GenerateStatements_getStatementInfo">

<xsd:sequence>

<xsd:element name="String_1" type="xsd:string" />

<xsd:element name="arrayOfString_2" type="ns2:ArrayOfstring" />

<xsd:element name="arrayOfString_3" type="ns2:ArrayOfstring" />

<xsd:element name="String_4" type="xsd:string" />

</xsd:sequence>

</xsd:complexType>

</xsd:schema>

</wsdl:types>

<wsdl:message name="GenerateStatements_getStatementInfoResponse" />

<wsdl:message name="GenerateStatements_getStatementInfo">

<wsdl:part name="GenerateStatements_getStatementInfo" type="GenerateStatements_getStatementInfo" />

</wsdl:message>

</wsdl:definitions>

My runtime environment info is:

Runtime Environment

Java version:

1.6.0_07

Java vendor:

Sun Microsystems Inc.

Version

Service pack:

13

Release:

NW04S_13_REL

Latest change:

34074

Any ideas would be appreciated ! Seems that if SAP was

going to have trouble with this WSDL it should have complained much earlier like when I imported the WSDL in the first place ...very frustrating !

Rod

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

According to this document

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2089f29b-b10a-2a10-5297-e258df0c...

the syntax

<wsdl:part name="GenerateStatements_getStatementInfo" type="GenerateStatements_getStatementInfo" />

is not supported for java proxies.

Unfortunately, u will have to edit the wsdl for working with java proxy.

Regards,

Prateek