cancel
Showing results for 
Search instead for 
Did you mean: 

Using PCo to communicate with SAP ME

Former Member
0 Kudos

We are implementing the SAP ME RDS and we have done all of the step by
step guides pertaining to PCo. We have tried connecting to a data
collection group that we know has PCo connected to it, but it is not
working properly. We do not get errors in ME or PCo but no data comes
into ME. I need an effective way to test these web services to see the
data.

PCo uses the below link to communicate to ME.
http://<SERVER>:<PORT>/manufacturing-services/ProductionService?wsdl

Service: ProductionProcessingClient

Can you please show me how I can test the data using the browser or
something to see the results of the services for this particular url?

I have the SAP ME guide to Web Services, but is there a more elaborate
guide for MII or PCo?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

If you just need to test the WS, please try sending a request from soapUI.

The response can be checked there too. Additionally, you can check Data Collection Results Report in ME.

I remember there were some bugs in PCo against sending WS requests. Maybe you are using some old version.

Additionally you should change WS protocol from HTTPS (default) to HTTP in NWA - see SAP Note 1604880.

Regards,

Sergiy

Former Member
0 Kudos

We are using http and the PCo version is 2.2.  Can you please provide some insight to how we would test this using SoapUI?  We are getting no data in ME and that is why I am asking to test the web service to see if I can get data.  I am trying to pinpoint where this issue is.

0 Kudos

You can download any freeware version of soapUI (I used 1.7.5).

As to how create a soapUI project and test the WS, please find the instructions here.

Regards,

Sergiy

Former Member
0 Kudos

I downloaded and installed soapgui from the web, but I get a java heap size error.  Any idea how to solve this issue?

0 Kudos

I would suggest that you ask this question in a separate thread and provide there more details about error: where do you see it? what is the exact wording? etc.

Former Member
0 Kudos

Tried to replicate the issue and it appears to be working now.

Former Member
0 Kudos

I am revisiting the WS guide that is offered with the ME installation of 6.0 and I am specfically looking at the SAP Netweaver Configuration section (pgs 16-17). 

Individual web services can be viewed and configured using SAP NetWeaver Administrator by

performing the following steps:

1.  Log on to SAP NetWeaver Administrator at

http://<AS_Java_HTTP_host>:<AS_Java_HTTP_port>/nwa

2.  Choose SOA → Application and Scenario Communication → Single Service

Administration.

3.  Choose the Browse tab and choose the Software Components option from the Select

Classification dropdown list.

4.  Expand sap.com/VISIPRISE → sap.com/me~ws

I know this guide is intended for ME 5.2 and it s a different Netweaver, but sap.com/VISIPRISE is not available to me.  I would like to understand completely about every section of this guide and this section is a minor set back as I would like to know if this has been eliminated with Netweaver 7.3 or what can I do to replicate this? 

0 Kudos

I would suppose that you are looking at the server where SAPMEINT is deployed, though the webservices are of ME.

Otherwise, if ME is deployed here indeed, you had some problem during deploy of ME and as result the component of ME webservices failed to deploy. Then I would redeploy ME from scratch.

Regards,

Sergiy

Former Member
0 Kudos

SAPMEINT, SAP ME and SAP MII are deployed on the same server and that screen capture was on that particular server.  Because of issues with the installation of SAP MEINT, we have un-deployed and re-dployed ME a few times already.  Each time MEINT and ME installed without issues.  Is there anything else we can do to fix this issue because it seems that every time we un-deploy and re-deploy, there are a lot of dependencies that we have to consider?

0 Kudos

Please check my screen shot of what I see on another tab. If you do not see the same, then you definitely have the problem with installation/deploy of ME WS component provided that you use not old release of ME.

Former Member
0 Kudos

We have exactly the same screen you have.  We have gone to the SoapGui section of the WS guide but we get an error in SoapGui.  I am not sure if this is somehow related, but I am not able to properly test the WS and we do not get data in ME from PCo.  Please review our attachment.

http://EmailLargeFile.com/d/6LLJQLUZDHO

0 Kudos

Have you tried to send some valid request, I mean, with valid site, SFC and so on? There should be no tags left with "?".

Former Member
0 Kudos

We have tried this, but we are getting an error message.  Please review the attachment as it contains the SoapGui project and error logs.we tried to follow the M17 document of the RDS and then we tried the ProductionOrderService to see what data we could retrieve using site and shop order, but ths produced the same error.  We removed all of the "?" and we are using the MESYS username, but nothing is working.

http://EmailLargeFile.com/d/VHDEWDD6DCK

ProductionOrderService

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME">

   <soapenv:Body>

      <me:ProductionOrderByBasicDataQuery_sync>

         <me:ProductionOrderByBasicDataQuery>

            <me:SiteRef>

               <me:Site>TST</me:Site>

            </me:SiteRef>

               <me:ShopOrder>TEST-26-07-16-12-7</me:ShopOrder>

         </me:ProductionOrderByBasicDataQuery>

      </me:ProductionOrderByBasicDataQuery_sync>

   </soapenv:Body>

</soapenv:Envelope>

0 Kudos

You have retried in the same soapUI 4.5.1. As I said earlier, there might be an issue with this version. Please try to find another version.

ProductionOrderByBasicDataQuery works fine on my side.

Alternatively, on my previos screen shot, there "WSDLs" tab. There you can find "Test" button. It lets you test webservice also. However, in case of firewall between MII and ME, this way does not check anything besides deployment of ME WS component.

Former Member
0 Kudos

Tried installing SoapUI 4.0, but my laptop prevented me from installing a .jar file into a folder location where I do not have rights to.  I decided to use the same version you stated you are using (1.7.5).  I was able to execute the web service but I got an error.I have compiled the project, logs and screenshot into the link below for your viewing. Also, we looked at the SSA in Netweaver and we are getting errors here as well.  The one issue that stands out is the use of the GUEST user.  Not sure why it is GUEST, but it seems wrong.  Thank you for giving your attention to this.

http://EmailLargeFile.com/d/PMB$XPIGUG8

tim_drury
Active Participant
0 Kudos

I looked in your HTTPLog.txt and saw an error with your production order request.  The error says:

<faultstring>shopOrderRef is missing</faultstring>

which is indeed the case.  You used

<me:ShopOrder>TEST-26-07-16-12-7</me:ShopOrder>

in your request but it should be

<me:ShopOrderRef>TEST-26-07-16-12-7</me:ShopOrderRef>

-tim

Former Member
0 Kudos

what is the correct syntax bc I have tried <me:ShopOrderRef>TEST-26-07-16-12-7</me:ShopOrderRef> and I get an error stating that shopOrder is missing.

This is what I currently have.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME">

   <soapenv:Body>

      <me:ProductionOrderByBasicDataQuery_sync>

         <me:ProductionOrderByBasicDataQuery>

            <me:SiteRef>

               <me:Site>TST</me:Site>

            </me:SiteRef>

                     <me:ShopOrderRef>TEST-26-07-16-12-7</me:ShopOrderRef>

         </me:ProductionOrderByBasicDataQuery>

      </me:ProductionOrderByBasicDataQuery_sync>

   </soapenv:Body>

</soapenv:Envelope>

Error:

<faultstring>shopOrder is missing</faultstring>

         <detail>

            <ns2:StandardMessageFault xmlns="http://sap.com/xi/SAPGlobal/GDT" xmlns:ns2="http://sap.com/xi/ME">

               <ns2:ErrorCode>12001</ns2:ErrorCode>

               <ns2:ErrorMessage>shopOrder is missing</ns2:ErrorMessage>

               <ns2:StackTraceList>

etc...

tim_drury
Active Participant
0 Kudos

leaving out namespace prefixes it should look like this (I made a mistake in my last post):

...

<ShopOrderRef>

   <ShopOrder>TEST-26-07-16-12-7</ShopOrder>

</ShopOrderRef>

-tim

Former Member
0 Kudos

Ok this is what I have now, but it still shows an issue.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME">

   <soapenv:Body>

      <me:ProductionOrderByBasicDataQuery_sync>

         <me:ProductionOrderByBasicDataQuery>

            <me:SiteRef>

               <me:Site>TST</me:Site>

            </me:SiteRef>

                     <me:ShopOrderRef>

                              <me:ShopOrder>TEST-26-07-16-12-7</me:ShopOrder>

                    </me:ShopOrderRef>

         </me:ProductionOrderByBasicDataQuery>

      </me:ProductionOrderByBasicDataQuery_sync>

   </soapenv:Body>

</soapenv:Envelope>

And the response is

<SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <SOAP-ENV:Body>

      <SOAP-ENV:Fault>

         <faultcode>SOAP-ENV:Client</faultcode>

         <faultstring>while trying to invoke the method com.sap.xi.me.SiteRef.getSite() of an object loaded from local variable 'siteRef'</faultstring>

         <detail>

            <yq1:java.lang.NullPointerException xmlns:yq1="http://sap-j2ee-engine/client-runtime-error">while trying to invoke the method com.sap.xi.me.SiteRef.getSite() of an object loaded from local variable 'siteRef'</yq1:java.lang.NullPointerException>

         </detail>

      </SOAP-ENV:Fault>

   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Error Log:

Mon Jul 23 07:33:13 EDT 2012:ERROR:java.lang.reflect.InvocationTargetException

   java.lang.reflect.InvocationTargetException

             at java.awt.EventQueue.invokeAndWait(Unknown Source)

             at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)

             at com.eviware.soapui.impl.wsdl.panels.request.components.editor.views.outline.SourceEditorCaretUpdater.run(SourceFile:60)

             at java.lang.Thread.run(Unknown Source)

   Caused by: java.lang.NullPointerException

             at com.eviware.soapui.impl.wsdl.panels.request.components.editor.views.outline.XmlOutlineEditorView.setCurrentOffset(SourceFile:190)

             at com.eviware.soapui.impl.wsdl.panels.request.components.editor.views.outline.SourceEditorCaretUpdater$1.run(SourceFile:66)

             at java.awt.event.InvocationEvent.dispatch(Unknown Source)

             at java.awt.EventQueue.dispatchEvent(Unknown Source)

             at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

             at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

             at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

             at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

             at java.awt.EventDispatchThread.run(Unknown Source)

0 Kudos

At least, now the communication to ME WS works fine.

Please try this one:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME">

   <soapenv:Header/>

   <soapenv:Body>

      <me:ProductionOrderByBasicDataQuery_sync>

         <me:ProductionOrderByBasicDataQuery>

            <me:SiteRef>

               <me:Site>TST</me:Site>

            </me:SiteRef>

            <me:ShopOrderRef>

               <me:ShopOrder>TEST-26-07-16-12-7</me:ShopOrder>

               <me:SiteRef>

                  <me:Site>TST</me:Site>

               </me:SiteRef>

            </me:ShopOrderRef>

         </me:ProductionOrderByBasicDataQuery>

      </me:ProductionOrderByBasicDataQuery_sync>

   </soapenv:Body>

</soapenv:Envelope>

Former Member
0 Kudos

Ok this works now.  Is there a method to follow when setting this up?  To me it doesn't really look intuitive, but maybe I just need time and experience with this.

0 Kudos

My method is a careful reading of the original structure of the request and filling in as much tags as possible at the beginning but afterwards excluding tags one by one if I think that someone is not necessary.

Former Member
0 Kudos

Thank you.  My next question is how can I connect to MII to view this wsdl?  I have connected to other web services in the past, but for whatever reason trying to connect to ME's wsdl the workbench freezes up and does not allow me to connect.  Can you help me here?

tim_drury
Active Participant
0 Kudos

What URL are you using?

Former Member
0 Kudos

http://<SERVER>:<PORT>/manufacturing-services/<SERVICE>?wsdl

or in my case, I am using ProductionService.

tim_drury
Active Participant
0 Kudos

I thought you might be using the ws-policy wrapped WSDL URL which many clients have a problem with, but you aren't.  Sadly, I'd have to direct you to the MII forum/thingy (whatever SCN calls them now) for an answer as to why it won't read the WSDL.  What error does MII show when it tries to parse that WSDL URL?

Former Member
0 Kudos

This is a screenshot video that shows the issue I am having with the workbench and the wsdl.  As you can see I have tried different configurations with the same results.  I press next and it just hangs.  I noticed there was a 60 second timeout so I waited at least 60 seconds to see if I would get an error.  Please let me know if I should proceed to the MII forum.

http://EmailLargeFile.com/d/BXZUKOR1ZZG

former_member196557
Active Contributor
0 Kudos

Hi,

Couple of things: In MII, check System Management-->System Properties and make sure that the appropriate entries are made in Proxy Configuration Bypass List, if you are behind a proxy or firewall.  Also, try either a fully-qualified domain name for the ME server, or try the IP address of the ME Server.  If none of this works, please open a thread on the MII forum in SCN.  I can connect to ME from MII just fine with the Web Service Action Block using MII 12.2.3 (Build 182).

- Steve

Former Member
0 Kudos

I have nothing listed in the Proxy Configuration.  I am checking to see f we are behind a firewall and the MI and ME application are on the same server and I have used the fully qualified domain name and ip address without success.

Answers (0)