Skip to Content
avatar image
Former Member

Error when Consuming a WS from an ABAP program

Hello,

I am getting an error when I try to consume a WS from my ABAP program. The error states ' Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/' and the code is SOAP: 14

This should be a simple call to a WS from BOBJ. I have searched OSS and SDN and I can't find any help. We are using 7.01 SP3

Actually I watched the blog by Thomas Jung to get me started and thing went well except forthe part where I was supposed to create the logical port via SOAMANAGER. I got this error 'Error: Initial value "context operation table" in methodDELETE_INVALID_INTERFACE_NODES of class CL_SRT_WSP_CONFIG_SIDL' so I used LPCONFIG instead and them SM59.

Has anyone encountered something like this?

Thanks!

Rich

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 23, 2009 at 03:21 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 25, 2009 at 01:34 AM

    Ok so I got the bright idea of putting an external breakpoint in the DELETE_INVALID_INTERFACE_NODES method of class CL_SRT_WSP_CONFIG_SIDL and interestingly I think I am on to something. The code that is throwing an expection is srt_wsp_error_is_initial lt_operations[] 'context operation table'. "#EC NOTEXT at approximentally line 89.

    So I am doing my amateur sleuthing in the debugger and it leads me to the WSDL and what looks like a missing operation for a port type. I say this b/c all the port type /port type tags have operation/operation tags embedded within them. simliar to this

       <portType name="Real-time_Services" /> 
    - <portType name="Batch_Jobs">
    - <operation name="Oracle">
      <input message="tns:Oracle_Input" /> 
      <output message="tns:Oracle_Output" /> 
      </operation>
      </portType>
    - <portType name="Realtime_Service_Admin">
    - <operation name="Get_RTService_List">
      <input message="tns:Get_RTService_List_Input" /> 
      <output message="tns:Get_RTService_List_Output" /> 
      </operation>
    - <operation name="Run_Realtime_Service">
      <input message="tns:Run_Realtime_Service_Input" /> 
      <output message="tns:Run_Realtime_Service_Output" /> 
      </operation>
    - <operation name="Get_RTMsg_Format">
      <input message="tns:Get_RTMsg_Format_Input" /> 
      <output message="tns:Get_RTMsg_Format_Output" /> 
      </operation>
      </portType> 

    Note the first port type = Real-time_services doesn't have an end port tag and in the debugger my ABAP is shortdumping when trying to proess this port type

    I think I found my error. Can anyone who has seen this before verify this for me before I give the WSDL creator heck 😉

    Thanks

    Rich

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      > <portType name="Real-time_Services" />

      has end tag, "/>" is reflected as end tag, for example "<sampletag> </sampletag>" is equivalent to "<sampletag/>".

      Regards,

      Gourav

  • avatar image
    Former Member
    Jul 25, 2009 at 05:34 PM

    Mmmmm so either that is an end tag or a problem. Well if its meant to be an end tag there is no beginning port type tag. I just did a serach for Real-time_services and that was the first one found. I am of the believe its a probelm in the WSDL. What do you think?

    Add comment
    10|10000 characters needed characters exceeded