telugammai Posted July 31, 2013 Report Posted July 31, 2013 yevaranna SAp web services pi work chesi unte cheppandi pls help kavalo urgent
telugammai Posted July 31, 2013 Author Report Posted July 31, 2013 [quote name='micr0s0ft' timestamp='1375260916' post='1304039047'] problem ento post chey LTT [/quote] calling web service from sap to transfer PO data to non sap system(.net).we have been provided the WSDL file and its URL created the ***** in sap using WSDL and calling method POINTERFACE to send data. below is the code first fill the PO header internal table data converted data to XML using 'CALL TRANSFORMATION Passing this XML string to the method. But prob is other side they are not able to read my xml data is there any other away to send internal table data in xml format using web services?pls suggest code: DATA:pohead_xml TYPE xstring. DATA:poitem_xml TYPE xstring. TRY. CREATE OBJECT lcl_web_serv EXPORTING logical_port_name = 'ZCLLS_PORT_OUTBOUND'. CATCH cx_ai_system_fault INTO oref. text = oref->get_text( ). ENDTRY. CALL TRANSFORMATION zpo_head_data SOURCE pohead = it_po_head RESULT XML pohead_xml. CALL TRANSFORMATION zpo_item_data SOURCE poitem = it_po_item[] RESULT XML poitem_xml. po_in-pohead-any = pohead_xml. po_in-poitem-any = poitem_xml. po_in-user_id = lv_uname. TRY. CALL METHOD lcl_web_serv->pointerface EXPORTING input = po_in IMPORTING output = po_out. CATCH cx_ai_system_fault INTO oref. text = oref->get_text( ). CATCH cx_ai_application_fault INTO oref. text = oref->get_text( ). ENDTRY.
sherlockholmes_anon Posted July 31, 2013 Report Posted July 31, 2013 Simple way. Send the data by [color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]DataSet.GetXml()[/background][/font][/color] [color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]User deseriliazes with [/background][/font][/color][color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]DataSet.ReadXml()[/background][/font][/color] [color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]Get datatable from dataset by [/background][/font][/color][color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]DataSet.Tables[/background][/font][/color] It looks like an encoding problem. What does the XML look like? What is the issue they are facing?
telugammai Posted August 2, 2013 Author Report Posted August 2, 2013 [quote name='Iamking' timestamp='1375273572' post='1304039495'] Simple way. Send the data by [color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]DataSet.GetXml()[/background][/font][/color] [color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]User deseriliazes with [/background][/font][/color][color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]DataSet.ReadXml()[/background][/font][/color] [color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]Get datatable from dataset by [/background][/font][/color][color=#000000][font=Consolas, Menlo, Monaco,][background=rgb(238, 238, 238)]DataSet.Tables[/background][/font][/color] It looks like an encoding problem. What does the XML look like? What is the issue they are facing? [/quote] IMK na issue solve ayyindhile thanks
Recommended Posts