Skip to Content
author's profile photo Former Member
Former Member

Element name clash in sapproxy1.cs

Hello all,

I am using .net connector to write a web application. I dragged and dropped two BAPI functions Bapi_Customer_Getdetail and Bapi_SalesOffice_GetDetail. These in turn brought in BAPIRETURN and BAPIRETURN1. The project build successfully.

However when I tried running it the following error was shown on the expplorer -

<i><b>Server Error in '/SAPBapiTest' Application.

-


The XML element named 'RETURN' from namespace '' references distinct types SAPBapiTest.BAPIRETURN1 and SAPBapiTest.BAPIRETURN. Use XML attributes to specify another XML name or namespace for the element or types.</b></i>

I guess there should be a way of specifying the namespace of the parameters of a bapi function and that would solve the problem. but unfortunately i could not deduce anyway of doing this apart from writing it explicitly on the generated sapProxy1.cs file. This solved the problem but since this file gets autogenerated this is not the solution. There has to be a better way of doing this...

any comments/ideas/suggestions?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 22, 2005 at 10:16 AM

    This error shouldn't happen. Have you installed the fix from OSS note 506603?

    If it doesn't help, please open a OSS ticket with your proxy files (.sapwsdl and C# files) attached.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.