小编Joe*_*ana的帖子

错误:未声明的名称空间前缀x:

我是一个SOAP新手,并努力解决此错误消息,

{:错误,"500","未声明的名称空间前缀\"x \"\n在[row,col {unknown-source}]:[1,168]"}

对于下面的SOAP信封.由于我试图访问的主机系统的条款和条件,我已用"xxx"替换了识别URL和凭证信息,并删除了大多数对象.

<x:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
            xmlns:read="urn://xxx/sdk/ReadObject" 
            xmlns:obj="http://xxx/object">
    <x:Header>
        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
                       xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:UsernameToken>
                <wsse:Username>xxx</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">xxx</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
    </x:Header>
    <x:Body>
      <read:readEstimate>
        <read:estimate>
        <obj:id>38945</obj:id>
        </read:estimate>
      </read:readEstimate>
    </x:Body>
</x:Envelope>
Run Code Online (Sandbox Code Playgroud)

xml soap xml-namespaces

4
推荐指数
1
解决办法
9179
查看次数

榆树 - Select标签内的动态Html选项标签

榆树新手在这里.

当我用CustomerSelect下面的Mpower模块替换下面模块中的元素时

customers = ["Select Customer","Customer 1","Customer 2","Customer 3"]
customerSelect =
  select [ ]
    [ List.map customerItem customers
    ]
Run Code Online (Sandbox Code Playgroud)

我收到一个Elm Compiler"Type Mismatch"错误:

函数select期望第二个参数是:

List VirtualDom.Node
Run Code Online (Sandbox Code Playgroud)

但它是:

List (List Html)
Run Code Online (Sandbox Code Playgroud)

这是从哪里来的?

module Mpower where

import Html exposing (..)
import List exposing (..)

customerItem custname =
  option [ ] [ text custname ]

customerSelect =
  select [ ]
    [
    customerItem "Select Customer",
    customerItem "Customer 1",
    customerItem "Customer 2",
    customerItem "Customer 3"
    ]

view =
  div [] …
Run Code Online (Sandbox Code Playgroud)

elm

3
推荐指数
1
解决办法
571
查看次数

标签 统计

elm ×1

soap ×1

xml ×1

xml-namespaces ×1