cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL Error when importing in ESR as External Definition

sherin_jose4
Participant
0 Kudos

Hi,

I am trying to import a WSDL in ESR as External Definition and getting the below error while importing,

Unable to convert imported document to WSDL

Reason:

Element "Policy" is not permitted in the "/definitions/portType("ManageInstalledBaseIn")" elementCheck selected category

Any help on fixing this issue is highly appreciated.

Attaching a part of the WSDL as i am not able to paste the complete WSDL

<wsdl:portType name="ManageInstalledBaseIn">

  <wsdl:documentation>

  <sapdoc:sapdoc xmlns:sapdoc="urn:sap:esi:documentation">

  <sapdoc:docitem applicationComponent="LOD-LE-IBA"/>

  </sapdoc:sapdoc>

  </wsdl:documentation>

  <wsp:Policy>

  <wsp:PolicyReference URI="#IF_IF_ManageInstalledBaseIn"/>

  </wsp:Policy>

  <wsdl:operation name="CheckMaintainItemTextAsBundle">

  <wsp:Policy>

  <wsp:PolicyReference URI="#OP_IF_OP_CheckMaintainItemTextAsBundle"/>

  </wsp:Policy>

  <wsdl:input message="tns:InstalledBaseItemTextRequestBundleCheckMaintainQuery_sync"/>

  <wsdl:output message="tns:InstalledBaseItemTextRequestBundleCheckMaintainResponse_sync"/>

  <wsdl:fault name="StandardFaultMessage" message="tns:StandardFaultMessage"/>

  </wsdl:operation>

  <wsdl:operation name="MaintainItemProductAsBundle">

  <wsp:Policy>

  <wsp:PolicyReference URI="#OP_IF_OP_MaintainItemProductAsBundle"/>

  </wsp:Policy>

  <wsdl:input message="tns:InstalledBaseItemProductBundleMaintainRequest_sync"/>

  <wsdl:output message="tns:InstalledBaseItemBundleMaintainConfirmation_sync"/>

  <wsdl:fault name="StandardFaultMessage" message="tns:StandardFaultMessage"/>

  </wsdl:operation>

  <wsdl:operation name="CheckMaintainBundle">

  <wsp:Policy>

  <wsp:PolicyReference URI="#OP_IF_OP_CheckMaintainBundle"/>

  </wsp:Policy>

  <wsdl:input message="tns:InstalledBaseRequestBundleCheckMaintainQuery_sync"/>

  <wsdl:output message="tns:InstalledBaseRequestBundleCheckMaintainResponse_sync"/>

  <wsdl:fault name="StandardFaultMessage" message="tns:StandardFaultMessage"/>

  </wsdl:operation>

  <wsdl:operation name="MaintainBundle">

  <wsp:Policy>

  <wsp:PolicyReference URI="#OP_IF_OP_MaintainBundle"/>

  </wsp:Policy>

  <wsdl:input message="tns:InstalledBaseBundleMaintainRequest_sync"/>

  <wsdl:output message="tns:InstalledBaseBundleMaintainConfirmation_sync"/>

  <wsdl:fault name="StandardFaultMessage" message="tns:StandardFaultMessage"/>

  </wsdl:operation>

  <wsdl:operation name="MaintainItemTextBundle">

  <wsp:Policy>

  <wsp:PolicyReference URI="#OP_IF_OP_MaintainItemTextBundle"/>

  </wsp:Policy>

  <wsdl:input message="tns:InstalledBaseItemTextBundleMaintainRequest_sync"/>

  <wsdl:output message="tns:InstalledBaseItemBundleMaintainConfirmation_sync"/>

  <wsdl:fault name="StandardFaultMessage" message="tns:StandardFaultMessage"/>

  </wsdl:operation>

  <wsdl:operation name="CheckMaintainItemProductAsBundle">

  <wsp:Policy>

  <wsp:PolicyReference URI="#OP_IF_OP_CheckMaintainItemProductAsBundle"/>

  </wsp:Policy>

  <wsdl:input message="tns:InstalledBaseItemProductRequestBundleCheckMaintainQuery_sync"/>

  <wsdl:output message="tns:InstalledBaseItemProductRequestBundleCheckMaintainResponse_sync"/>

  <wsdl:fault name="StandardFaultMessage" message="tns:StandardFaultMessage"/>

  </wsdl:operation>

  </wsdl:portType>

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Sherin,

The policy tag is not supported in PI. you need to comment the policy tag and then import the WSDL.

refer the below discussion

Error in WSDL | SCN

regards,

Harish

sherin_jose4
Participant
0 Kudos

Hi Harish,

I can see that there are so many tags with Policy in the complete WSDL. Do i have to completely remove all of it ?

Harish
Active Contributor
0 Kudos

Yes, you need to remove or comment those.

sherin_jose4
Participant
0 Kudos

Hi Harish,

It was a lot of work on commenting the Policy tags, but it worked

Thanks for your help.

philippeaddor
Active Participant

Old, but in case somebody comes across this today: You only would have needed to remove the policy tags under the node "PortType" (between each <wsdl:portType> and </wsdl:portType>).

Answers (1)

Answers (1)

former_member182412
Active Contributor
0 Kudos

Hi Sherin,

If you get this wsdl from ERP soamanager you can download the standard wsdl instead of ws_policy wsdl as per this blog

Regards,

Praveen.