Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我如何知道在XML字段中放置什么?_Xml - Fatal编程技术网

我如何知道在XML字段中放置什么?

我如何知道在XML字段中放置什么?,xml,Xml,所以,我最近发布了一个关于类似主题的问题,但我觉得它太宽泛了。我只是希望有人能帮助我理解在XML中放什么,以及我是否正确地这样做。这是我第一次使用XML,所以如果这个问题很琐碎,请原谅我 ,我正在尝试创建一个XML以发送到我的身份管理工具以创建一个组。然而,我很难理解网站上给出的例子。这就是他们所拥有的: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:i="http://www.w3.org/20

所以,我最近发布了一个关于类似主题的问题,但我觉得它太宽泛了。我只是希望有人能帮助我理解在XML中放什么,以及我是否正确地这样做。这是我第一次使用XML,所以如果这个问题很琐碎,请原谅我

,我正在尝试创建一个XML以发送到我的身份管理工具以创建一个组。然而,我很难理解网站上给出的例子。这就是他们所拥有的:

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"  
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"  
xmlns:da="http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"> 


对于
xmlns:da=”http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess“
,我会将我的目标位置放在那里,还是这个名称空间声明是我应该包含的预定义模式,如w3声明?然后是
http://localhost:5725/ResourceManagementService/ResourceFactory
我假设To是FIM工具的目标URL。如果有人能帮上忙,我将不胜感激。我找不到关于如何使用FIM工具的更多信息。

您所拥有的只是定义名称空间前缀的SOAP信封的根。 是的,
xmlns:da=”http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess“
只是定义名称空间前缀da,稍后将使用该前缀,例如


是的,
非常感谢您的回复!我一直在拼命寻找答案,哈哈。如果你不介意的话,我还有几个问题要问。我想创建一个新组,组的URL是
http://my.target.url.com/IdentityManagament/Groups
。那是我的目标URL,还是我只是点击
http://my.target.url.com
?其次,在本例中,它再次重复XML。我认为这是一个错误,但有必要有它两次吗?非常感谢你的帮助!之后的重复是该页面的一个问题,这是不正确的。太棒了,非常感谢!我将此标记为答案您在标识管理中有一个输入错误(您在g后面有一个a,而不是一个e)。他们给出的例子有
net。tcp://server01.fabrikam.com:9389/ActiveDirectoryWebServices/Windows/ResourceFactory
。主体中的内容决定了请求的类型,例如AddRequest、ModifyRequest和BaseObjectSearchRequest,它们具有操作的URL。PDF中有WSDL。在您正在构建的任何解决方案中使用它。
<?xml version="1.0" encoding="utf-8"?> 
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"  
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"  
xmlns:da="http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"> 
    <s:Header> 
        <wsa:Action 
s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</wsa:Action> 
        <da:IdentityManagementOperation s:mustUnderstand="1" /> 
        <wsa:ReplyTo> 
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address> 
        </wsa:ReplyTo> 
        <wsa:To 
s:mustUnderstand="1">http://localhost:5725/ResourceManagementService/ResourceFactory</wsa:To>    
</s:Header> 
    <s:Body> 
        <da:AddRequest 
Dialect="http://schemas.microsoft.com/2006/11/ResourceManagement/Dialect/IdentityAttributeTyp
e-20080602"> 
            <da:AttributeTypeAndValue> 
                <da:AttributeType>ObjectType</da:AttributeType> 
                <da:AttributeValue> 
                    <rm:ObjectType>ma-data</rm:ObjectType> 
                </da:AttributeValue> 
            </da:AttributeTypeAndValue> 
            <da:AttributeTypeAndValue> 
                <da:AttributeType>DisplayName</da:AttributeType> 
                <da:AttributeValue> 
                    <rm:DisplayName> 
                      Active Directory Management Agent 
                    </rm:DisplayName> 
                </da:AttributeValue> 
            </da:AttributeTypeAndValue> 
        </da:AddRequest> 
    </s:Body> 
</s:Envelope>