Web Service Help
Forum » Forum / Help » Web Service Help
Started by: AOlson (guest)
On: 1254935631|%e %b %Y, %H:%M %Z|agohover
Number of posts: 9
rss icon RSS: New posts
Web Service Help
AOlson (guest) 1254935631|%e %b %Y, %H:%M %Z|agohover

I am new to PeopleSoft Development and have been following this post to try and get an exposed web service up and running to consume by a third party application.
http://peoplesoft.wikidot.com/component-interface-based-web-services
I get through the whole tutorial but when I test the Web Service (WSDL) i get an error saying:

Retrieval of WSDL failed for wsdl name: NDFT.CI_MESSAGE_CATALOG1.1. (2,887) PT_INTEGRATION.GetWSDL.OnExecute Name:OnRequest PCPC:1627 Statement:33

I am not sure what this means? Also, we have multiple environments here so the environment where I created this Web Serive I preceeded the CI with the environment name and a dot.CI_MESSAGE_CATALOG1.1.wsdl

Any help would be great. Thanks for the wiki too. I have been searching for some good sites on PeopleSoft dev and they seem to be few and far between so am happy to see this.
Thanks.

Reply  |  Options
Unfold Web Service Help by AOlson (guest), 1254935631|%e %b %Y, %H:%M %Z|agohover
Re: Web Service Help
PrajPraj 1254961141|%e %b %Y, %H:%M %Z|agohover

Hi,

Thanks for the feedback on the Wiki. I'm glad you've found it useful.

Could you check your integration broker logs and post the error you receive there for further information? This article goes through Integration Broker Logging but basically, first try navigating to:

http://server:port/PSIGW/errorLog.html

Note the above is basically the first part of your web server gateway URL which you can get from:

  • PeopleTools > Integration Broker > Configuration > Quick Configuration

Scroll to bottom of the logs for the latest error messages.

Note I've also updated the CI based web services article with some extra troubleshooting information which may be useful.

Reply  |  Options
Unfold Re: Web Service Help by PrajPraj, 1254961141|%e %b %Y, %H:%M %Z|agohover
Re: Web Service Help
AOlson (guest) 1255021169|%e %b %Y, %H:%M %Z|agohover

Wow, that was quick. Thanks for the reply.

I followed the directions on your link below and when I get to the end othe publishing of the web service it comes up with a confirm results and a Generated WSDL URL: of the following:

http://wsdl.OurAddress.com/PSIGW/PeopleSoftServiceListeningConnector/CI_MESSAGE_CATALOG1.4.wsdl.
I then go into IE to see if is available to get the following error:

<?xml version="1.0" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>null</faultstring>
- <detail>
- <IBResponse type="error">
<DefaultTitle>Integration Broker Response</DefaultTitle>
<StatusCode>20</StatusCode>
<MessageID>887</MessageID>
- <DefaultMessage>
- <![CDATA[ Retrieval of WSDL failed for wsdl name: CI_MESSAGE_CATALOG1.4. (2,887) PT_INTEGRATION.GetWSDL.OnExecute Name:OnRequest PCPC:1627 Statement:33
]]>
</DefaultMessage>
<MessageParameters />
</IBResponse>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

However, when I go into our gateway information there is an IP address specified. if i change the above to use our IP address as below:
http://123.123.123.111/PSIGW/PeopleSoftServiceListeningConnector/CI_MESSAGE_CATALOG1.4.wsdl.

I get the following error:
<?xml version="1.0" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>null</faultstring>
- <detail>
- <IBResponse type="error">
<DefaultTitle>Integration Broker Response</DefaultTitle>
<StatusCode>20</StatusCode>
<MessageID>505</MessageID>
- <DefaultMessage>
- <![CDATA[ Unable to find a Routing corresponding to the incoming request message.
]]>
</DefaultMessage>
<MessageParameters />
</IBResponse>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

it seems this might be an issue with all the environments we have setup? I dont' know if that IP address goes to the machine I am publishing this service on or not.

Concerning the error log. I get two different ones when i use each of the above addresses. any idea how i determine which one i should use?

My ultimate goal here is, I want to consume this web service in some of our VB.NET apps that we have. When I get this working I will then build my own web services to consume the data i require, but wanted to make sure this functioned first.

Thanks again for the assistance.

Unfold Re: Web Service Help by AOlson (guest), 1255021169|%e %b %Y, %H:%M %Z|agohover
Re: Web Service Help
PrajPraj 1255041222|%e %b %Y, %H:%M %Z|agohover

Thanks for the extra information.

The second error message you are getting when using the IP address of the gateway is slightly more helpful. It may suggest an issue with some of the internal integration broker settings.

Can you check the following:

  • Navigate to PeopleTools > Integration Broker > Integration Setup > Service Operations
  • Open up the service operation GETWSDL (its part of the IB_UTILITY service)
  • Confirm that on the General tab, the routing status of Any-To-Local is exists (Local-to-Local can be set to does not exists)
  • Click on the Service Operation Security link, confirm the delivered permission list PTPT1200 is there and that access is set to Full Access
  • In the Handlers tab, the handler is REQUSTHDLR, OnRequest, AppClass and Active.
  • In the Routings tab you should have an auto generated routing with the sender node as ~~ANY~~ and receiver node as your default local node (depends on your configuration). Make sure this routing is active.
  • Click on the routing hyperlink to view its properties.
  • In the parameters tab, check the external alias it should just be GetWSDL. If not, then you will have a problem.

It appears that something in this area may be incorrect which is why you are getting these errors. I had a look at the code in the PT_INTEGRATION.GetWSDL application class, and the statement the error is referring to is:

&wsdlstring = %IntBroker.GetWSDL(&wsdlname | "." | &vername);

So it may be having problems calling the internal GetWSDL service operation.

It might also be security related. Can you check the default user ID set for the ANONYMOUS node under:

  • PeopleTools > Integration Broker > Integration Setup > Nodes

This user should have the permission list PTPT1200 which is the default set under service operation security for the GETWSDL service operation. To check, run the following SQL in your database, changing the OPRID to the default user ID set on the ANONYMOUS node.

select OPRCLASS from PSOPRCLS where OPRID = 'ANONYMOUS_NODE_DEFAULT_ID' order by OPRCLASS;

In terms of which error log is which, the URL that uses the gateway URL should be the correct one. Although, it seems strange that you would have two, unless there is something wrong with the web server/IB configuration? Basically the gateway URL should be the URL of your web server.

Good luck, hopefully its one of these things :)

Last edited on 1255041278|%e %b %Y, %H:%M %Z|agohover By Praj + Show more
Unfold Re: Web Service Help by PrajPraj, 1255041222|%e %b %Y, %H:%M %Z|agohover
Re: Web Service Help
AOlson (guest) 1255358072|%e %b %Y, %H:%M %Z|agohover

Thanks again.
I haven't checked everything you mentioned, but shortly before your reply i got it to connect to some degree. I am using VB and a test form to simply test this out.
Here is what I had to do. I had to use the IP address URL and add to the URL your mention of the specific node i was on.

However, I am still having an issue with making it work and maybe one of the things you mention above will solve this too and if so please let me know and I will try them out.

My form has 3 boxes, am emlid, last name, first name and a button. This code is part of the click event on the button:

Dim MyWebService As New MyEmployeeWebService.CI_NDU_AO_EMP2_T_PortTypeClient
Dim emplRqst As New MyEmployeeWebService.CreateCompIntfcNDU_AO_EMP2_TTypeShape

Dim EmplID As New MyEmployeeWebService.EMPLIDTypeShape
Dim LastName As New MyEmployeeWebService.LAST_NAMETypeShape
Dim FirstName As New MyEmployeeWebService.FIRST_NAMETypeShape

EmplID.Value = txtEmplID.Text
LastName.Value = txtLastName.Text
FirstName.Value = txtFirstName.Text

emplRqst.EMPLID = EmplID
emplRqst.LAST_NAME = LastName
emplRqst.FIRST_NAME = FirstName

Dim emplResponse As New MyEmployeeWebService.CreateCompIntfcNDU_AO_EMP2_TResponseTypeShape

emplResponse = MyWebService.EmpCreate(emplRqst)

I get to the the last line (emplResponse = MyWebService.empCreate(emplRqst) and an error is thrown below:

The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 572 bytes of the response were: '<?xml version="1.0" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>null</faultstring><detail><IBResponse type="error"><DefaultTitle>Integration Broker Response</DefaultTitle><StatusCode>20</StatusCode><MessageID>505</MessageID><DefaultMessage><![CDATA[Unable to find a Routing corresponding to the incoming request message.]]></DefaultMessage><MessageParameters></MessageParameters></IBResponse></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>'.

Any ideas?

Also, is there a spot where you can check what the statuscodes or MessageID's mean?

Unfold Re: Web Service Help by AOlson (guest), 1255358072|%e %b %Y, %H:%M %Z|agohover
Re: Web Service Help
AOlson (guest) 1255364524|%e %b %Y, %H:%M %Z|agohover

I should make a note as I was curious about the steps you posted and started going through them.

I got up to: Click on the Service Operation Security link, confirm the delivered permission list PTPT1200 is there and that access is set to Full Access

When I click the Service Operations Security Link it doesn't go any place. No error or anything. It is like it refreshes the Service Operations page is all. I tried a couple of other services with the same result. Maybe this is why these are not working?

Unfold Re: Web Service Help by AOlson (guest), 1255364524|%e %b %Y, %H:%M %Z|agohover
Re: Web Service Help
AOlson (guest) 1255364756|%e %b %Y, %H:%M %Z|agohover

Sorry, I did something to have it post before I was done. Also making sure the External Alias is GetWSDL is not set either. It looks like it used the alias name that I was setting up for the create event with the version number? Can I change this or do i need to republish?

Thanks again for the help and sorry for the multiple posts here.

Unfold Re: Web Service Help by AOlson (guest), 1255364756|%e %b %Y, %H:%M %Z|agohover
Re: Web Service Help
PrajPraj 1255431723|%e %b %Y, %H:%M %Z|agohover

Sounds like you're making some good progress. I'll try to post individual answers to each of your questions so bear with me :)

The service operations security link is supposed to bring up a pop-up window. So if you are using IE you may need to tweak your security settings (Tools > Internet Options > Security) to allow pop ups etc. I've generally found the easiest solution is to make the entire PeopleSoft site (or even the entire domain e.g. *.peoplesoftwiki.com) a trusted site. If that doesn't work then, yes there may be something quite wrong, but hopefully that's all it is.

Unfold Re: Web Service Help by PrajPraj, 1255431723|%e %b %Y, %H:%M %Z|agohover
Re: Web Service Help
PrajPraj 1255432622|%e %b %Y, %H:%M %Z|agohover

With the error you are getting:

… content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly …

Just wondering if the line where you pass data to the web service object, you should be passing the actual EmplID rather than the object?

So change the line to:

emplResponse = MyWebService.EmpCreate(emplRqst.EMPLID)

It would seem like this is a type mismatch error. Not sure if I'm reading your code right so apologies if that's what you are in fact doing.

Reply  |  Options
Unfold Re: Web Service Help by PrajPraj, 1255432622|%e %b %Y, %H:%M %Z|agohover
New Post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License