Rans4ckeR / RS.Fritz.Manager

A .NET library and Windows WPF app for FritzBox devices using WCF.
8 stars 1 forks source link

Not able to get additional action 'GetGenericHostEntry' to Hosts service working #4

Closed RoSchmi closed 2 years ago

RoSchmi commented 2 years ago

I'm trying to add 'GetGenericHostEntry' to Hosts service. As with your library I was not successful I tried another library (FBoxAPI) andwith this API I got it working. With 'RS.FritzManager.Domain' my Fritzbox cable returns a fault code and complains of an invalid action. To see the real requests and resonses I used Fiddler to see the network traffic. In the pictures below you can see the requests and responses of both libraries but I have no idea why it doesn't work with your library.

Traffic_RS Fritz Manager Domain *

*

*

Traffic_FBoxAPI

Do you see a reason?

Rans4ckeR commented 2 years ago

@RoSchmi can you commit your code in your repository?

RoSchmi commented 2 years ago

@Rans4ckeR Thanks for your fast reply. The code to try is in the branch devRoSchmiPr2. Click on the hosts button to start the actions.

Rans4ckeR commented 2 years ago

@RoSchmi the operation contract is incorrect: [OperationContract(Action = "urn:dslforum-org:service:Hosts:1#X_AVM-DE_GetGenericHostEntry")] should be [OperationContract(Action = "urn:dslforum-org:service:Hosts:1#GetGenericHostEntry")]

This value is set in the headers not in the body, so we can't see this mistake in your screenshots.

RoSchmi commented 2 years ago

@Rans4ckeR thanks, works now. Should have asked earlier. If you agree I'll prepare a pull request for the new actions.

Rans4ckeR commented 2 years ago

@RoSchmi sure go ahead.