Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Update PO using GP Web service

Posted on by 70

 Hi,

I am able to create a PO using GP web service but I am getting the following error while trying to 

update the PO (basically its a change order). Could someone give an example of how to update a PO in GP using the GP web service?

Thanks in advance

Kriss

Duplicate Purchase Order.
</faultstring><detail>72359fcf-566e-4e84-b9e8-7048783b93a8</detail></soap:Fault></soap:Body></soap:Envelope>
Exception:
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it
 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Re: Re: Update PO using GP Web service

    1) You need to include the schemas during the eConnect install. That will provide you with the eConnect XSD file you need. Refer to this page from Microsoft.

    2) You need to install eConnect on the subnet where GP resides, and preferably on the database server for optimum performance.

  • kriss Profile Picture
    kriss 70 on at
    Re: Re: Update PO using GP Web service

     Thanks Ruel for the prompt reply. I can now understand that eConnect is the way to update a PO.

    I have 2 questions.

    1) My calling application is on Java so most probably I have to use eConnect web service. Do you know where I could get the eConnect wsdl (xml)? I could not find in programmer's guide.

    2) Where should I install eConnect10? On calling machine or on machine where GP Dynamics is residing?

    Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Update PO using GP Web service

    You may have reached a cul-de-sac because as far as I know update functionality for purchase orders is still in the works (people please correct me if I am wrong).

    If you haven't done so, you can check out the programmer's SDKs here.

    The way I would deal with it is to create a middle-tier web app encapsulating a call to eConnect. eConnect has the <taPOHdr> and <taPOLine> nodes with update functionality.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans