cancel
Showing results for 
Search instead for 
Did you mean: 

Error while calling MII transaction as web service from ABAP

Former Member
0 Kudos

Hello Experts,

I want to call a MII transaction from ABAP program, as a web service.

Following is output of http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX (TAG_TRX is name of my transaction).

  <?xml version="1.0" encoding="UTF-8" ?> 
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
- <!--  Types 
  --> 
- <types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII">
- <s:complexType name="InputParams">
- <s:sequence id="InputSequence">
  <s:element maxOccurs="1" minOccurs="0" name="WEIGHT" type="s:string" /> 
  <s:element maxOccurs="1" minOccurs="0" name="BATCHID" type="s:string" /> 
  </s:sequence>
  </s:complexType>
- <s:element name="XacuteRequest">
- <s:complexType>
- <s:sequence>
  <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string" /> 
  <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string" /> 
  <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams" /> 
  </s:sequence>
  </s:complexType>
  </s:element>
- <s:complexType name="Rowset">
- <s:sequence>
  <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row" /> 
  </s:sequence>
  <s:attribute name="Message" type="s:string" /> 
  </s:complexType>
- <s:complexType name="Row">
  <s:sequence id="RowSequence" /> 
  </s:complexType>
- <s:element name="XacuteResponse">
- <s:complexType>
- <s:sequence>
  <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset" /> 
  </s:sequence>
  </s:complexType>
  </s:element>
  </s:schema>
  </types>
- <!--  Messages 
  --> 
- <message name="XacuteSoapIn">
  <part element="s0:XacuteRequest" name="parameters" /> 
  </message>
- <message name="XacuteSoapOut">
  <part element="s0:XacuteResponse" name="parameters" /> 
  </message>
- <!--  Ports 
  --> 
- <portType name="XacuteWSSoap">
- <operation name="Xacute">
  <input message="s0:XacuteSoapIn" /> 
  <output message="s0:XacuteSoapOut" /> 
  </operation>
  </portType>
- <!--  Bindings 
  --> 
- <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> 
- <operation name="Xacute">
  <soap:operation soapAction="http://www.sap.com/xMII" style="document" /> 
- <input>
  <soap:body use="literal" /> 
  </input>
- <output>
  <soap:body use="literal" /> 
  </output>
  </operation>
  </binding>
- <!--  Service mapping 
  --> 
- <service name="XacuteWS">
- <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
  <soap:address location="http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX" /> 
  </port>
  </service>
  </definitions>

-


Now, when I am using http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX to create a Enterprise Service in SAP (i.e. SE80 transaction-> Create Enterprise Service-> Service Consumer-> URL/HTTP Destination-> URL ... I am getting following error.

Incorrect value: Entity "<<document>>"(5 /93 ). unexpected symbol: '<'

But, whenever I am using the same URL in MII BLS, it does not give any error. It correctly shows all input and output parameters.

Please help me to resolve this issue.

Regards

Neeta.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Jamie, the problem was at proxy configuration parameters at MII system administration level.

Former Member
0 Kudos

Now, I am able to create the Web Service in SAP and it is now showing the respective class, attribute and methods to execute this web service (web service to call MII transaction).

But when I am calling it from ABAP (a simple Web Dynpro for ABAP method), it is showing me the following error:

Error (id=GET_BUSINESS_SYSTEM_ERROR): An error occurred when determining the business system (LD_ERROR)

Thought this error is coming from ABAP program, but I am sure that this is related to some configuration at SAP level. (Let me inform you that there are two different servers for SAP Web Dynpro ABAP and SAP MII.

Please help.

Thanks in advance.

Former Member
0 Kudos

Any solution for this web service problem??

Need help on this issue.

agentry_src
Active Contributor
0 Kudos

Since the error is most likely caused by something in the Enterprise Services layer in ECC, I would try getting a resource familiar with those types of objects. There is likely not many folks here who are experienced in that technical area. There should be another Forum within SDN which would have those resources.

When you do find an answer, please come back here and post the solution.

Thanks,

Mike

Former Member
0 Kudos

Hello Neeta,

I have the same problem;

Incorrect value: Entity "<<document>>"(5 /93 ). unexpected symbol: '<'  

> Thanks Jamie, the problem was at proxy configuration parameters at MII system administration level.

What was wrong at proxy configuration parameters ?

Regards,

Namik.

Former Member
0 Kudos

Hello All,

We can't use MII web services in SAP because of this problem.

Is there any solution for this?

Regards,

Namik.

jamie_cawley
Advisor
Advisor
0 Kudos

In SE80 you probably should be using the wsdlgen url not soaprunner. If that doesn't work then I would check to see if you are missing any proxy configuration parameters.

Regards,

Jamie