Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Web service: parameter types

Former Member
0 Likes
891

Hi,

We made an ABAP webservice with input parameters.

In the WSDL the type of the parameters is:

- <wsdl:message name="ZTestWebService2">

<wsdl:part name="Costcenter" type="n0:char10" />

The type ‘char10’ is defined like:

- <xsd:simpleType name="char10">

- <xsd:restriction base="xsd:string">

<xsd:maxLength value="10" />

</xsd:restriction>

</xsd:simpleType>

Question is: is there a way to influence the creation of this types, so that the type is not referring to ‘n0:char10’ but to something like ‘char’ and that the length is also defined in the part name ? Something that is more Java friendly and will not create code for complex types on the client-side ?

Thanks,

Rolf.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
640

HI,

No u cant change this parameter dynamically after the release of web service.

When u will release the webservice for a RFC,the WSDL file will be generated.That time it will generate the files for every parameter types which are used in the RFC.

If u want increase this value length,Then u hv to increase the lenght of the parameter in RFC and then release the web service.So that it will come here.

Bcause in webservice lenght will not allow more that the lenghth which u gave in RFC.

Regs

Manas Ranjan Panda

4 REPLIES 4
Read only

Former Member
0 Likes
641

HI,

No u cant change this parameter dynamically after the release of web service.

When u will release the webservice for a RFC,the WSDL file will be generated.That time it will generate the files for every parameter types which are used in the RFC.

If u want increase this value length,Then u hv to increase the lenght of the parameter in RFC and then release the web service.So that it will come here.

Bcause in webservice lenght will not allow more that the lenghth which u gave in RFC.

Regs

Manas Ranjan Panda

Read only

0 Likes
640

Well, the generated WSDL uses namespaces, our client side programmer asks for a WSDL without namespaces. Just wondering if this is possible ?

Read only

0 Likes
640

HI,

As per my knowledge, its not possible.

U may ask ur administrator for doing some configurations, if it can help.

Programmetically its not possible.

Mark points.

Regs

Manas Ranjan Panda

Read only

0 Likes
640

Thanks Manas.