web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Testing AIF Service Using Visual Studio Command Prompt

(0) ShareShare
ReportReport
Posted on by 106

Hi All,

I'm trying to test my custom service using Visual Studio Command Prompt.

After running this command 

wcftestclient http://[domainname]/DynamicsAx/Services/BTRFTestServiceGroup

It starts the WCF Test Client. But then I got this error:

The type or namespace name 'Application' does not exist in the namespace 'Microsoft.Dynamics.Ax' (are you missing an assembly reference?)

Any idea what went wrong? Thank you!

*This post is locked for comments

I have the same question (0)
  • Jie G Profile Picture
    on at

    Hi,

    It is just a tool to call your web service and it's nothing with the error.
    1. Brower the service URL directly in IE, can you visit it?
    2. refer to http://www.c-sharpcorner.com/uploadfile/shinuraj587/testing-wcf-service-using-test-client-wcftestclient-exe/ 

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    I have tested this on Standard Microsoft provided AX2012R3CU9 VHD. It is working and I found no wrong anywhere while using WcfTestClient manually or using VS cmd.

  • raymonmon Profile Picture
    106 on at

    Hi Ada,

    I browsed the URL. It gives me this XML

    This XML file does not appear to have any style information associated with it. The document tree is shown below.

    <wsdl:definitions xmlns:wsdl="schemas.xmlsoap.org/.../&quot; xmlns:wsx="schemas.xmlsoap.org/.../mex&quot; xmlns:i0="http://tempuri.org&quot; xmlns:wsu="docs.oasis-open.org/.../oasis-200401-wss-wssecurity-utility-1.0.xsd&quot; xmlns:wsa10="www.w3.org/.../addressing&quot; xmlns:wsp="schemas.xmlsoap.org/.../policy&quot; xmlns:wsap="schemas.xmlsoap.org/.../policy&quot; xmlns:msc="schemas.microsoft.com/.../contract&quot; xmlns:soap12="schemas.xmlsoap.org/.../&quot; xmlns:wsa="schemas.xmlsoap.org/.../addressing&quot; xmlns:wsam="www.w3.org/.../metadata&quot; xmlns:xsd="www.w3.org/.../XMLSchema&quot; xmlns:tns="http://tempuri.org/&quot; xmlns:soap="schemas.xmlsoap.org/.../&quot; xmlns:wsaw="www.w3.org/.../wsdl&quot; xmlns:soapenc="schemas.xmlsoap.org/.../&quot; name="BTRFTestServiceGroup" targetNamespace="http://tempuri.org/&quot;>

    <wsp:Policy wsu:Id="NetTcpBinding_BTRFTestService_policy">

    <wsp:ExactlyOne>

    <wsp:All>

    <msb:BinaryEncoding xmlns:msb="schemas.microsoft.com/.../netbinary1&quot;/>

    <sp:TransportBinding xmlns:sp="schemas.xmlsoap.org/.../securitypolicy&quot;>

  • Jie G Profile Picture
    on at

    Hi Raymon,

    The service can be visited in IE means your service has been deployed successfully. There may be some issues with WCFTESTCLIENT itself. You can new a project in VS and add your service reference to test it.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Sukrut Parab Profile Picture

Sukrut Parab 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans