Skip to Content
0
Former Member
May 15, 2007 at 07:39 PM

SAP Web Services from .NET problems

35 Views

I am trying to execute a SAP web service from the ES workplace via Visual Studio. I incorporate the web service into my .NET project by doing an Add Reference in Visual Studio. The following WSDL is generated with Visual studio flagging the highlighted lines below as undeclared. Does anyone know why this is occurring? When I try to execute the project I get reflection errors which I am sure is a byproduct of the undeclared issue. Any Help would be much appreciated. Here is a partial view of the generated WSDL:

<?xml version="1.0" encoding="utf-8"?>

http://sap.com/xi/APPL/SE/Global" xmlns:n0=" http://sap.com/xi/SAPGlobal20/Global" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:http=" http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace=" http://sap.com/xi/APPL/SE/Global" xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/">

<wsdl:types>

http://sap.com/xi/SAPGlobal20/Global" xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl" xmlns:xi1=" http://sap.com/xi/APPL/SE/Global" xmlns=" http://sap.com/xi/SAPGlobal20/Global" targetNamespace=" http://sap.com/xi/SAPGlobal20/Global">

http://sap.com/xi/APPL/SE/Global" />

<b><xsd:element name="SalesOrderByIDQuery_sync" type="xi1:SalesOrderByIDQueryMessage_sync" />

<xsd:element name="SalesOrderByIDResponse_sync" type="xi1:SalesOrderByIDResponseMessage_sync" /></b>

<xsd:element name="StandardMessageFault">

<xsd:complexType>

<xsd:sequence>

<b> <xsd:element name="standard" type="xi1:ExchangeFaultData" /></b>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

http://sap.com/xi/SAPGlobal20/Global" xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl" xmlns:xi1=" http://sap.com/xi/APPL/SE/Global" xmlns=" http://sap.com/xi/APPL/SE/Global" targetNamespace=" http://sap.com/xi/APPL/SE/Global">

<xsd:complexType name="Amount">

<xsd:simpleContent>

<xsd:extension base="xi1:AmountContent">

<xsd:attribute name="currencyCode" use="required">

<xsd:simpleType>