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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

always get null value when consume web services

(0) ShareShare
ReportReport
Posted on by

Hi, i have a problem with consume web service.

i already test on WCF client test , the value is exist, but in dynamics AX the value always null. i tried refresh , update, and deploy  service reference in visual studio but still same.

to make sure, i create c# application and add wsdl to service reference, and the value is exist same with WCF client Test result.

debug-ax.PNG

debug-c_2300_.PNG

wcf.PNG

what can i do for show same result with WCF client test ?

for information, wsdl link generated from OSB

thanks

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: always get null value when consume web services

    Hi Martin,

    did you mean updating the service in visual studio same with this picture ?

    refresh.PNG

    If yes, i already take this action , deploy and recompile on AOT , but still not refresh on AX.

    So I took action with deleted the bad service reference and add it again on this project.

    I do not know why this happens, because usually if I have a new update on the link wsdl, I only update the reference services and will refresh on AX.
    Maybe I got bad luck on last Saturday :)

  • Martin Dráb Profile Picture
    236,025 Most Valuable Professional on at
    RE: always get null value when consume web services

    That's a lot of information that we didn't get before...

    Anyway, I'm glad you've solved it. By the way, updating the service reference in Visual Studio would probably suffice.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: always get null value when consume web services

    Hi martin,

    sorry if i tell you about this problem not clearly,

    i get web service link from oracle service bus (OSB), and then they OSB team create modification on their wsdl.

    i had consume wsdl for AX with add service reference on visual studio.

    before modification wsdl link by OSB team, the record is still have null value, after they fix it, in WCF client test is running well with no null value, but in AX still same ,even though i had refresh , rebuild , deploy ,clear cache, cil, and compile c# project on AOT but still not changes.

    so in yesterday, i tried make new C# project with same wsdl link ., and the result is good, i dont get null value anymore.

  • Martin Dráb Profile Picture
    236,025 Most Valuable Professional on at
    RE: always get null value when consume web services

    You still didn't tell us what you're doing. I see from your code that you're consuming an external web service in X++ and you're probably calling the same service in the test client. Did I describe your situation correctly?

    Unfortunately I can't say what service you call, whether you're really calling the thing or what other information we didn't get from you...

    Without more information, the only advice I have for you is using debugging and tracing to identify exactly what's going on, such why the properties are not filled in or they lose values later. Just looking at the final result isn't usually enough to understand the problem.

  • Suggested answer
    Wim Van hoorde Profile Picture
    on at
    RE: always get null value when consume web services

    Hi Davinius ,

    Can you share with us what you are doing? 

    Is your service operation in AX having an outbound transformation through a XSL stylesheet? If yes, the WCF client will always return a null value.

    I assume that serializing to the service operation return type is not working since the XML structure is no longer the same after the transformation.

    Had the same issue a week ago, removed the outbound transformation and I did receive a return value.

    Kind regards,

    Wim.

  • Community Member Profile Picture
    on at
    RE: always get null value when consume web services

    Hi Martin,

    i request data from web service and get response with null data

    example :

    in wcf client test , Currency and paymentsSeq has a value

    but on ax currency and paymentSeq has null value

    this is in wcf client test

    7043.debug-ax.PNG

    and than , this is on ax, i debug with visual studio

    7043.debug-ax.PNG

    i has , compile full cil, and restart AOS, but still same

  • Martin Dráb Profile Picture
    236,025 Most Valuable Professional on at
    RE: always get null value when consume web services

    Please tell us what you're doing, which value is null and and so on.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans