NAV 2013 R2 XMLPort to create soap packet

ScottJonesScottJones Member Posts: 44
edited 2013-12-16 in NAV Three Tier
Hi,

I developed an XMLPort to create a soap packet in NAV2009R2 to talk to NAV2013R2 web service. I am now trying to do the reverse and make a NAV2013R2 talk to a NAV2009R2 webservce but I cannot get it working using namespaces as I cannot change the namespace once it has been set to "Soap:". There is a hot fix for NAV2013 I wonder if this has not been implemented in NAV2013R2???

346345 - XMLports do not handle prefixed Namespaces

Has anyone else encountered this problem in NAV2013R2?

This is the soap packet I am trying to create but I do not seem to be able to create without getting error:

"Could not process node xmlns. The following error occurred: The prefix '' cannot be redefined from '' to 'urn:microsoft-dynanmics-schemas/codeunit/svcST3IntegrationWebService' within the same start element tag."
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Soap:Envelope xmlns:Soap="http://schemas.xmlsoap.org/soap/envelope/">
  <Soap:Body>
    <FncSubmitItems xmlns="urn:microsoft-dynamics-schemas/codeunit/svcST3IntegrationWebService">
      <pXML_Request>
        <Items xmlns="urn:microsoft-dynamics-nav/xmlports/x70006">
          <Item>
            <Code>10</Code>
            <Description>IBM STORAGE ENGINE PRELOAD</Description>
            <UnitPrice>0</UnitPrice>
            <UnitListPrice>0</UnitListPrice>
            <Blocked>0</Blocked>
          </Item>
          <Item>
            <Code>10 1U SERVER BOXES</Code>
            <Description>SERVER BOXES 10 1U SERVER BOXES500MM X 75MM X 775MM</Description>
            <UnitPrice>42</UnitPrice>
            <UnitListPrice>0</UnitListPrice>
            <Blocked>0</Blocked>
          </Item>
        </Items>
      </pXML_Request>
      <pXML_Response/>
    </FncSubmitItems>
  </Soap:Body>
</Soap:Envelope

I have tried setting the default namespace but once this is set I cannot change it the the XMLPort namespace.

Any pointers would be appreciated...
Sign In or Register to comment.