Hi Shahzad

I have implemented my own demo a long time ago using the XMLPortal and 
XMLSinkInterface from Microsoft InfoPath.

What you should do is to set up the handler in the XMLDispatchEditor form. I.e. 
map the namespace of the root element in your XML document to the class 
implementing the XMLSinkInterface (tutorial_SoapSink)

Hope this helps.

Regards
Thomas



-----Oprindelig meddelelse-----
Fra: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] På 
vegne af Shahzad Butt
Sendt: 16. marts 2006 15:42
Til: Axapta-Knowledge-Village@yahoogroups.com
Emne: [Axapta-Knowledge-Village] XML Soap Ingtegration

 

Hi, has anyone used XMLPortal or XMLSinkInterface class? It might be
that I am doing something totally wrong. I am trying to send XML
Messages (From Web) to Axapta and done the XML Name Space mapping (using
XMLDispatchEditor form) with Class ("tutorial_SoapSink") implementing
XMLSinkInterface. Registered the BusinessConnector. Created
XMLPortal.asp file in the webserver and when I run XMLPortal.asp I can
see the logs being generated in XMLPortalLog (form) which means that
BusinessConnector is working fine. The thing I am struggling with is how
to pass the XML document to XMLPortal.asp and let the class do some
work. Once I get the demo working then I'll be sending sales or purchase
orders' XML packets using this approach.

 

The XML File is  "tutorial_SoapSink.xml"

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";>

    <s:Body>

        <message xmlns="urn:sms-gateway" >

        <deliver>

            <oa>+4523232323</oa>

            <ud>This is a message to Axapta</ud>

        </deliver>

        </message>

    </s:Body>

</s:Envelope>

 

 

XMLPortal.asp file is

<%

    dim businessConnector

    dim clientId

    dim dom

    dim filesystem

    dim file

 

 

    ' Fetch the client Id to identify the caller

    clientId = request.servervariables("REMOTE_HOST")

 

    ' Create the Business Connector

    set businessConnector =
Server.CreateObject("AxaptaComConnector.Axapta2.1")

 

    ' Log on. It is practical to have an "xml" user

    businessConnector.logon "xml"

 

    ' Create the XML DOM

    set dom = server.createObject("microsoft.xmldom")

 

    ' Load the message

    if (dom.load(request)) then

      response.write("Success")

    end if

 

    ' Call into the xml portal

    response.write (businessConnector.callStaticClassMethod
("XMLPortal", "portal", dom, clientId))

    businessConnector.logoff

%>

 

 

Thanks,

 

Shahzad Butt 

 

Mob: +44 7739 556 280

 

 



[Non-text portions of this message have been removed]






Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends. 
Yahoo! Groups Links



 





Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to