NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - EdwardLoh

Pages: [1]
1
Thanks Bruce,

Worked perfectly.

Edward

2
Hello Again,

Just a quick update and a correction on my previous post.  I was not paying attention to my previous tests.

The Clarion Group Declaration:

ReturnG              GROUP,PRE(),NAME('return')
xmlns                     CSTRING(32),NAME('xmlns | attribute')
LicenseNumber        CSTRING(64),NAME('licenseNumber')
                          END

Generated the following:

<return>
    < xmlns="">
    <licenseNumber>001YY10020</licenseNumber>
</return>


While the following declaration:

ReturnG              GROUP,PRE(),NAME('return')
xmlns                     CSTRING(32),NAME('xmlns | attribute(return)')
LicenseNumber        CSTRING(64),NAME('licenseNumber')
                          END


Generated the following:

<return>
    <xmlns/>
    <licenseNumber>001YY10020</licenseNumber>
</return>


Now I am beginning to think that something is not quite right with the XML generation using Extended Naming Attribute.

I will keep looking.

Edward


3
Could some one tell me what I am doing wrong?

I trying to output the following XML tag:

         <return xmlns="">
               <licenseNumber>0282500615</licenseNumber>
         </return>


I tried the following Clarion Group Declarations:

ReturnG              GROUP,PRE(),NAME('return')
xmlns                     CSTRING(32),NAME('xmlns | attribute(return)')
LicenseNumber        CSTRING(64),NAME('licenseNumber')
                          END


ReturnG              GROUP,PRE(),NAME('return')
xmlns                     CSTRING(32),NAME('xmlns | attribute')
LicenseNumber        CSTRING(64),NAME('licenseNumber')
                          END


Both of them resulted in the following:

<return><xmlns/><licenseNumber>0282500615</licenseNumber></return>


The is part of the return parameters in a WebServiceMethod Template.  I cannot tell what I am doing wrong because I was able to set the xmlns attribute in another service method.

Regards,

Edward

4
Hello Alberto,

Many thanks for the help.

I must have made a typo when I tried with my browser earlier because I could not get the server to respond with just IP/MethodName.  I looked at example #77 and it worked.  So, I try my server again and it also worked.

Regards,

Ed

5
Hello Alberto,

Thank you for the kind words.

Do you have an example or a link to any description on how to use NetTalk to response to this format.  From the NetTalk web server log, I noticed that the action is blank and, therefore, the server does not know how to response.

Regards,

Ed

6
Hello Everyone,

Mostly using the NetTalk Wizards, I have been able to created a few web service servers.  The API has always been in this format: DomainName/SerivceName/MethodName.  This works great when I have control of my API.  However, I need to replace a third party web service which uses this calling format: DomainName/MethodName.

How do I setup my NetTalk Web Service Server to accept this URI and trigger the corresponding method procedure?

Edward

Pages: [1]